asp.net相对路径、绝对路径 string currentDir = HttpContext.Current.Request.ServerVariables["APPL_PHYSICAL_PATH"]; 路径为currentDir+@"\data\..."context.Server.MapPath(@"~\w3c\"));