[转载]Request获取文件路径

       string s01 = Request.ApplicationPath;                          //testweb   
            string s02 = Request.CurrentExecutionFilePath;          //testweb/default.aspx   
            string s03 = Request.FilePath;                                     //testweb/default.aspx   
            string s04 = Request.Path;                                           //testweb/default.aspx   
            string s05 = Request.PathInfo;
            string s06 = Request.PhysicalApplicationPath;             //E:WWW estweb   
            string s07 = Request.PhysicalPath;                              //E:WWW estwebdefault.aspx   
            string s08 = Request.RawUrl;                                       //testweb/default.aspx   
            string s09 = Request.Url.AbsolutePath;                        //testweb/default.aspx   
            string s10 = Request.Url.AbsoluteUri;                           //http://www.test.com/testweb/default.aspx   
            string s11 = Request.Url.Host;                                      //www.test.com   
            string s12 = Request.Url.LocalPath;                             //testweb/default.aspx

原文地址:https://www.cnblogs.com/LD1018/p/8042967.html