<< Back to the snippet list
Picking out query string key-value pairs
An incredibly common task is that of retrieving the value of a specific key passed via the URL. The appealing format of URLs is that they can be composed rather elegantly and thus are in many scenarios a good way to go for passing data between pages. To access the value of a key, simply use the Request type with an index of the key. ou will want to perform validation on the value, as it can be easily corrupted - but for the most part it is a sufficiently elegant mechanism for passing data.
c#
Request
ASP.NET