<< Back to the snippet list

Picking out query string key-value pairs

Published: 09 Jun 2008 By Granville Barnett

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

Discussion


Subject Author Date
Davide Consonni 21/06/2008 09:48 AM

Please login to leave a comment.