//获取当前文件相对路径
string documentPath = HttpContext.Current.Request.Url.PathAndQuery;
//获取文件绝对路径
string serverPath = HttpContext.Current.Server.MapPath("Web.config");
string documentPath = HttpContext.Current.Request.Url.PathAndQuery;
//获取文件绝对路径
string serverPath = HttpContext.Current.Server.MapPath("Web.config");