虚拟路径 代码如下: Server.MapPath("~/") 取得的就是虚拟路径 取绝对路径 代码如下: string absolutelyPath =AppDomain.CurrentDomain.BaseDirectory; 取物理路径和应用程序路径 代码如下: System.Web.HttpContext.Current.Request.ApplicationPath |
虚拟路径 代码如下: Server.MapPath("~/") 取得的就是虚拟路径 取绝对路径 代码如下: string absolutelyPath =AppDomain.CurrentDomain.BaseDirectory; 取物理路径和应用程序路径 代码如下: System.Web.HttpContext.Current.Request.ApplicationPath |