static string GetPhysicalPath(string path) { if(path.StartsWith("~")) return HttpContext.Current.Server.MapPath(path); return path; }