若当前地址为http://www.test.com/testweb/default.aspx ,则可以通过下列方法获得不同的地址


Request.ApplicationPath: /testweb  
Request.CurrentExecutionFilePath: /testweb/default.aspx  
Request.FilePath: /testweb/default.aspx  
Request.Path: /testweb/default.aspx  
Request.PathInfo:  
Request.PhysicalApplicationPath: E:\WWW\testweb\  
Request.PhysicalPath: E:\WWW\testweb\default.aspx  
Request.RawUrl: /testweb/default.aspx  
Request.Url.AbsolutePath: /testweb/default.aspx  
Request.Url.AbsoluteUri: http://www.test.com/testweb/default.aspx  
Request.Url.Host: www.test.com  
Request.Url.LocalPath: /testweb/default.aspx

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-27
  • 2022-12-23
  • 2021-09-29
  • 2021-12-15
  • 2021-12-05
猜你喜欢
  • 2022-12-23
  • 2021-10-08
  • 2022-12-23
  • 2021-07-07
  • 2021-12-04
  • 2021-11-04
  • 2022-12-23
相关资源
相似解决方案