Return to Snippet

Revision: 31982
at September 16, 2010 21:12 by daverussellr


Initial Code
if (Request.RawUrl.Contains("keyid")) {
    var qstring = Request.RawUrl.Substring(Request.RawUrl.IndexOf("?") + 1, Request.RawUrl.Length - Request.RawUrl.IndexOf("?") - 1);

            NameValueCollection query = HttpUtility.ParseQueryString(qstring);
            var keyId = query["keyid"];

        }

Initial URL

                                

Initial Description
Check for a key in a querystring on a mappedUrl. ie: Will find a key in a querystring when appended to a friendly Url.

Initial Title
Check For Key in Querystring in MappedUrl

Initial Tags

                                

Initial Language
C#