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