saimisei

取本页URL地址的方法是(总结)

测试的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.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

posted on 2008-08-28 16:54  閑雲野鶴  阅读(184)  评论(0编辑  收藏  举报

导航