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

相关文章:

  • 2022-01-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
猜你喜欢
  • 2019-10-29
  • 2021-10-02
  • 2022-02-06
相关资源
相似解决方案