测试的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
 
                    
                 
                
 
 
                
            
         浙公网安备 33010602011771号
浙公网安备 33010602011771号