关于.net中路径的问题

取得物理路径:
string path = HttpContext.Current.Server.MapPath("print\\");
取得访问的网址(协议+域名+端口号):
string path = HttpContext.Current.Request.Url.GetLeftPart(UriPartial.Authority)
posted on 2006-02-28 16:58  Ameng  阅读(336)  评论(0)    收藏  举报