Omar, it didn't work for me on ASP.NET 4, it returned a key of "stackoverflow.com?para&quot; instead of "para". So I'm using HttpUtility.ParseQueryString(new Uri(fullUrl).Query) which correctly works for me.
–
MichaelApr 5 '11 at 22:01

ParseQueryString is really poor idea to use in desktop application, because it isn't included in Client Profile; why to install 100 M of additional libraries on client computer to just use one simple method? However, it looks like Microsoft doesn't have any better idea. The only way is to implement own method or use open source implementation.
–
VitaliyJun 1 '12 at 12:05

this is really helpful for windows phone, you just have to replace the "NameValueCollection" with a "SortedDictionnary<string,string>"
–
Mike BryantNov 14 '13 at 13:15

1

Be careful when switching NameValueCollection for a Dictionary - they're not the same! Query strings support multiple keys with the same value, and so does the NameValueCollection.
–
Matt DeKreyMay 8 '14 at 13:10