ASP.NET – Get the exact url typed into the browser

VB.net
My.Request.Url.GetLeftPart(UriPartial.Authority) & My.Request.RawUrl

 

C#
System.Web.HttpContext.Current.Request.Url.GetLeftPart(UriPartial.Authority) + System.Web.HttpContext.Current.Request.RawUrl;

Leave a Comment

Your email address will not be published. Required fields are marked *