佬唐

博客园 首页 新随笔 联系 订阅 管理

测试的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:8060/UserCenter/ZTest/WebForm1.aspx?para1=def,   结果如下:   

Request.ApplicationPath: /UserCenter
Request.CurrentExecutionFilePath: /UserCenter/ZTest/WebForm1.aspx
Request.FilePath: /UserCenter/ZTest/WebForm1.aspx
Request.Path: /UserCenter/ZTest/WebForm1.aspx
Request.PathInfo:
Request.PhysicalApplicationPath: F:/Ccenn/solution/source/CcennSolution/WebsiteUserCenter/
Request.PhysicalPath: F:/Ccenn/solution/source/CcennSolution/WebsiteUserCenter/ZTest/WebForm1.aspx
Request.RawUrl: /UserCenter/ZTest/WebForm1.aspx?para1=def
Request.Url.AbsolutePath: /UserCenter/ZTest/WebForm1.aspx
Request.Url.AbsoluteUri: http://localhost:8060/UserCenter/ZTest/WebForm1.aspx?para1=def
Request.Url.Host: localhost
Request.Url.LocalPath: /UserCenter/ZTest/WebForm1.aspx


 

 

posted on 2010-03-08 14:19  佬唐  阅读(154)  评论(0)    收藏  举报