/ Published in: C#
Check for a key in a querystring on a mappedUrl. ie: Will find a key in a querystring when appended to a friendly Url.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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"]; }