Url: /Product/1
Rewrite path: ~/Product.aspx?id=1

使用了Url重写,则我们使用Request的那些属性Url, RawUrl, PhysicalPath等等取到的都是Url而不是Rewrite path。
不过我们可以使用this.Page.AppRelativeVirtualPath可以获取到~/Product.aspx

这样我们就可以很容易的取到文件名了。

相关文章:

  • 2021-08-12
  • 2022-01-20
  • 2022-02-03
  • 2021-12-14
  • 2022-12-23
  • 2022-12-23
  • 2021-05-25
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案