code_junkie

ASP conditional error

Nov 12th, 2011
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. if (Request.Cookies("username") <> "") and (Request.Cookies("password") <> "") Then
  2.  
  3. if (!string.IsNullOrEmpty(Request.Cookies("username")) &&
  4. !string.IsNullOrEmpty(Request.Cookies("password")))
  5. {
  6. // Do your stuff, here :)
  7. }
Add Comment
Please, Sign In to add comment