1.得到虚拟目录中的物理路径: System.Web.HttpContext.Current.Request.MapPath("\\signin"); //signin为虚拟目录名!
Request.PhysicalApplicationPath 一样
2.System.Web.HttpContext.Current.Request.PhysicalApplicationPath.ToString()
得到当前文件的物理路径
Request.PhysicalApplicationPath 一样
2.System.Web.HttpContext.Current.Request.PhysicalApplicationPath.ToString()
得到当前文件的物理路径
浙公网安备 33010602011771号