Advertisement
Guest User

Untitled

a guest
Jul 30th, 2015
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. http://www.website.com/page.aspx?ID=9 // must return YES
  2. http://www.website.com/page.aspx?ID=9&Page=2 // must return YES
  3. http://www.website.com/page.aspx // must return NO
  4.  
  5. http://www.website.com/page.aspx?RandomParameter=1
  6.  
  7. return Request.QueryString != null && Request.QueryString.Count > 0 ? "YES" : "NO";
  8.  
  9. return Request.QueryString != null && Request.QueryString.Count > 0;
  10.  
  11. if(Request.QueryString != null && Request.QueryString.Count > 0)
  12. {
  13. return "YES";
  14. }
  15. else
  16. {
  17. return "NO";
  18. }
  19.  
  20. return (Request.QueryString != null && Request.QueryString.Count > 0) ? "YES":"NO";
  21.  
  22. if (Request.QueryString.HasKeys())
  23. {
  24. Response.Write("The requested page URI has parameters");
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement