虚拟路径
复制代码 代码如下:
Server.MapPath("~/") 取得的就是虚拟路径
取绝对路径
复制代码 代码如下:
string absolutelyPath =AppDomain.CurrentDomain.BaseDirectory;
取物理路径和应用程序路径
复制代码 代码如下:
System.Web.HttpContext.Current.Request.ApplicationPath
查看更多关于Global.asax取物理路径/取绝对路径具体方法的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://www.haodehen.cn/did28947