public static string ConvertToPhysicalPath(string path) { if (path == null) throw new ArgumentNullException("path"); return (path.StartsWith("/") || path.StartsWith("~")) ? HttpContext.Current.Server.MapPath(path).TrimEnd('\') : path.TrimEnd('\'); }
public static string ConvertToPhysicalPath(string path) { if (path == null) throw new ArgumentNullException("path"); return (path.StartsWith("/") || path.StartsWith("~")) ? HttpContext.Current.Server.MapPath(path).TrimEnd('\') : path.TrimEnd('\'); }