【源】http://www.bhcode.net/article_web/914.html

 

   测试的url地址是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

 

 -------------------------------------------------------------------------------------------------------------------------------

补充:

   测试url:http://localhost:1986/direct/Test/Test.aspx

   虚拟路径:/direct/

   Request.AppRelativeCurrentExecutionFilePath:    ~/Test/Test.aspx

   Request.CurrentExecutionFilePath:    /direct/Test/Test.aspx

   Request.Url.Authority:    localhost:1986

   Request.Url.Port:    1986

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-15
  • 2021-10-07
  • 2022-02-26
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案