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

相关文章: