关于.net中路径的问题
取得物理路径:
string path = HttpContext.Current.Server.MapPath("print\\");取得访问的网址(协议+域名+端口号):
string path = HttpContext.Current.Request.Url.GetLeftPart(UriPartial.Authority)
string path = HttpContext.Current.Server.MapPath("print\\");
string path = HttpContext.Current.Request.Url.GetLeftPart(UriPartial.Authority)
浙公网安备 33010602011771号