C# How to get a QueryString value from the UrlReferrer
April 24, 2008
Categories: Web & Software Development
Tags: C#
To get a QueryString value from the previous pages URL (aka: the UrlReferrer) you can use HttpUtility.ParseQueryString.
Like this!
NameValueCollection nameValueCollection = HttpUtility.ParseQueryString(Request.UrlReferrer.Query); string keyword = nameValueCollection["kw"];
“And that’s all I have to say about that.”
