.Maui Blog

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;
Exit mobile version