ASP.NET Parts of Absolute Path // Gets the base url in the following format: // "http(s)://domain(:port)/AppPath" HttpContext.Current.Request.Url.Scheme+"://" +HttpContext.Current.Request.Url.Authority +HttpContext.Current.Request.ApplicationPath; Source