C#后台获取当前系统根路径:

string absoluteurl = Context.Request.Url.AbsoluteUri.Replace(Context.Request.RawUrl, "") + "/UserAgreement.aspx";

获取到:http://localhost:26459/UserAgreement.aspx

 

相关文章:

  • 2021-11-27
  • 2021-09-04
  • 2021-09-11
猜你喜欢
  • 2021-10-29
  • 2021-05-17
  • 2021-12-09
  • 2021-10-21
  • 2022-01-16
  • 2021-11-27
相关资源
相似解决方案