I\'m looking for the simplest way of converting a query string from an HTTP GET request into a Dictionary, and back again.
I figure it\'s easier to carry out various
Yet another way to do it:
NameValueCollection nvcData = HttpUtility.ParseQueryString(queryString); Dictionary<string, string> dictData = new Dictionary<string, string>(nvcData.Count); foreach (string key in nvcData.AllKeys) { dictData.Add(key, nvcData.Get(key)); }