How to read the query string params of a ASP.NET raw URL?

asp.net, c#, parameters, query-string, url

Solution

This is probably what you're after

  Uri theRealURL = new Uri(HttpContext.Current.Request.Url.Scheme + "://" +   HttpContext.Current.Request.Url.Authority + HttpContext.Current.Request.RawUrl);

   string yourValue= HttpUtility.ParseQueryString(theRealURL.Query).Get("yourParm"); 

Problem

I have a variable ``` string rawURL = HttpContext.Current.Request.RawUrl; ``` How do I read the query string parameters for this url?

Original source

Related problems