Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- http://www.website.com/page.aspx?ID=9 // must return YES
- http://www.website.com/page.aspx?ID=9&Page=2 // must return YES
- http://www.website.com/page.aspx // must return NO
- http://www.website.com/page.aspx?RandomParameter=1
- return Request.QueryString != null && Request.QueryString.Count > 0 ? "YES" : "NO";
- return Request.QueryString != null && Request.QueryString.Count > 0;
- if(Request.QueryString != null && Request.QueryString.Count > 0)
- {
- return "YES";
- }
- else
- {
- return "NO";
- }
- return (Request.QueryString != null && Request.QueryString.Count > 0) ? "YES":"NO";
- if (Request.QueryString.HasKeys())
- {
- Response.Write("The requested page URI has parameters");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement