Guest User

Untitled

a guest
Aug 15th, 2018
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. Access a form in asp.NET C#
  2. <form action="login.aspx" method="get">
  3. <p>Username: <input type="text" name="username" /></p>
  4. <p>Password: <input type="text" name="password" /></p>
  5. <input type="submit" value="Submit" />
  6. </form>
  7.  
  8. Dim UserName
  9. UserName = Request.Form("UserName")
  10.  
  11. string userName = Request.Form["UserName"];
  12.  
  13. <form action="login.aspx" method="post">
  14.  
  15. <form action="login.aspx" method="post" runat="server">
  16. <p>Username: <input type="text" name="username" runat="server" id="txtUsername" /></p>
  17. <p>Password: <input type="text" name="password" runat="server" id="txtPassword"/></p>
  18. <input type="submit" value="Submit" />
  19. </form>
  20.  
  21. string UserName= txtUsername.Value;
Add Comment
Please, Sign In to add comment