物理路径映射
private string GetMapPath(string virtualPath) { string fullPath; if (virtualPath.StartsWith("~")) { fullPath = HostingEnvironment.MapPath(virtualPath); } else { fullPath = HostingEnvironment.MapPath("~/" + virtualPath); } return fullPath; }
private string GetMapPath(string virtualPath) { string fullPath; if (virtualPath.StartsWith("~")) { fullPath = HostingEnvironment.MapPath(virtualPath); } else { fullPath = HostingEnvironment.MapPath("~/" + virtualPath); } return fullPath; }