ASP.Net - How do I get querystring from the URL?

By [)ia6l0 iii

Use Page.ClientQueryString to get the encoded query string portion of the requested url.

For e.g. Page.Querystring would return action=faqnew for the url : http://www.eggheadcafe.com/silverlight.aspx?action=faqnew

Related FAQs

If you browse your mvc pages, through modern day browsers like Chrome - you will find that there would be additional requests like the ones to the favicon. This is the icon, that appears to the left of the web address in the browser once the page loads.
Use the Override versions of the page methods instead of thedefault page methods. This would ensure that the .Net runtime does not have to invoke delegates.
Use the FilePathResult to return a file content as the http response.
Use the "UrlReferrer" property of the Request object to retrieve the previous page url.
Use the "IsSecureConnection" property of the HttpRequest object to find if a Request is from a HTTP or HTTPS connection
You can check the contenttype of the request, and figure out if the request is an JSon request
ASP.Net - How do I get querystring from the URL?  (1451 Views)