Skip to content

Instantly share code, notes, and snippets.

@bbrewer97202
Created September 24, 2013 16:34
Show Gist options
  • Save bbrewer97202/6687433 to your computer and use it in GitHub Desktop.
Save bbrewer97202/6687433 to your computer and use it in GitHub Desktop.
Get Full URL of page in C# without query string
Response.Write(new Uri(HttpContext.Current.Request.Url.AbsoluteUri).GetLeftPart(UriPartial.Path));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment