asp.net相对路径、绝对路径

string currentDir = HttpContext.Current.Request.ServerVariables["APPL_PHYSICAL_PATH"];
路径为currentDir+@"\data\..."

context.Server.MapPath(@"~\w3c\"));
原文地址:https://www.cnblogs.com/tuzhiye/p/1379975.html