I have my class on C# on .NET, called after a request by an URI. I need to check if this URI contains some parameters or not.
For example :
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
is it possible? Of course I couldn’t know the name for each parameters in the URI, so for a random querystring like :
http://www.website.com/page.aspx?RandomParameter=1
I need to return YES. Can I do it?
You have to allow for
Request.QueryStringbeingnullas well (no parameters).to return a
string:to return a
bool: