string url = HttpContext.Current.Request.Url.AbsoluteUri; // http://localhost:5505/webproject/index.aspx string path = HttpContext.Current.Request.Url.AbsolutePath; // /webproject/index.aspx string host = HttpContext.Current.Request.Url.Host; // localhost
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)