2

Lets say i have this:

WebRequest myWebRequest1 = (WebRequest)asynchronousResult.AsyncState;

i know that i can get the url like this myWebRequest1.RequestUri but i was wondering if there is any way to get the query strings using a better way than manualy parsing it , i mean something like myWebRequest1.QueryString[etc etc ]

any ideas ?

thanks in advance....

Stacker
  • 8,157
  • 18
  • 73
  • 135

1 Answers1

5

Try extracting the request URI as a string and using: HttpUtility.ParseQueryString(String)

m.edmondson
  • 30,382
  • 27
  • 123
  • 206