Guest User

Untitled

a guest
Jun 26th, 2018
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. NameValueCollection nvc = Request.Form;
  2. string userName, password;
  3. if (!string.IsNullOrEmpty(nvc["txtUserName"]))
  4. {
  5. userName = nvc["txtUserName"];
  6. }
  7.  
  8. if (!string.IsNullOrEmpty(nvc["txtPassword"]))
  9. {
  10. password = nvc["txtPassword"];
  11. }
  12.  
  13. //Process login
  14. CheckLogin(userName, password);
  15.  
  16. if (!string.IsNullOrEmpty(Request.Form["username"]) { ... }
  17.  
  18. NameValueCollection nvc = Request.Form;
  19. string userName, password;
  20. if (!string.IsNullOrEmpty(nvc["txtUserName"]))
  21. {
  22. userName = nvc["txtUserName"];
  23. }
  24.  
  25. if (!string.IsNullOrEmpty(nvc["txtPassword"]))
  26. {
  27. password = nvc["txtPassword"];
  28. }
  29.  
  30. //Process login
  31. CheckLogin(userName, password);
Add Comment
Please, Sign In to add comment