c# - Best way to take all querystring pairs and init a dictionary -
I want to store all key / value pairs in my query string:
Www in a dictionary example.com/?a=2&b=3&c=34
is there a quick way to do this that to take a ride manually through all the objects is?
Try HttpUtility.ParseQueryString ()
.
This returns you the NameValueCollection
of your keys and values.
Comments
Post a Comment