I\'ve got a string in .NET which is actually a url. I want an easy way to get the value from a particular parameter.
Normally, I\'d just use Request.Params[
Request.Params[
You can use the following workaround for it to work with the first parameter too:
var param1 = HttpUtility.ParseQueryString(url.Substring( new []{0, url.IndexOf('?')}.Max() )).Get("param1");