1、网站请求协议:http
HttpContext.Current.Request.Url.Scheme;
2、网站域名:localhost
HttpContext.Current.Request.Url.Authority;
3、网站虚拟目录:/
HttpContext.Current.Request.ApplicationPath;
1、网站请求协议:http
HttpContext.Current.Request.Url.Scheme;
2、网站域名:localhost
HttpContext.Current.Request.Url.Authority;
3、网站虚拟目录:/
HttpContext.Current.Request.ApplicationPath;
转载于:https://www.cnblogs.com/jalonly/p/7463707.html