如果测试的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 estwebdefault.aspx Request.RawUrl: /testweb/default.aspx Request.Url.AbsolutePath: /testweb/default.aspx Request.Url.AbsoluteUrl: http://www.test.com/testweb/default.aspx Request.Url.Host:
Request.Url.LocalPath: /testweb/default.aspx
如果测试的url地址是http://www.test.com/testweb/default.aspx?id=5, 结果如下:
Request.RawUrl: /testweb/default.aspx?id=5
Request.Url.AbsolutePath: /testweb/default.aspx