摘要: 1: 获取网站根目录的方法有几种如:Server.MapPath(Request.ServerVariables["PATH_INFO"])Server.MapPath("/")Server.MapPath(".")Server.MapPath("../")Server.MapPath("~/")2: Global.asax文件里获取获取网站根目录; Global.asax文件里没有请求上下文所以以上的方法全部返回NULL 可以使用 string path=HttpRuntime.AppDoma 阅读全文
posted @ 2014-01-02 12:01 程序猿网友666 阅读(399) 评论(0) 推荐(0) 编辑