url from path C# code example Example: get absolute url c# string absoluteurl = System.Web.HttpContext.Current.Request.Url.AbsoluteUri;