zoukankan      html  css  js  c++  java
  • [转载]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

  • 相关阅读:
    设计模式:组合模式
    对技术的认识及思考
    设计模式:策略模式
    java集合:常用集合的数据结构
    设计模式:代理模式
    java反射
    Spring事务管理
    在Spring使用junit注解进行单元测试
    tomcat限制ip访问
    获取openid回调两次
  • 原文地址:https://www.cnblogs.com/LD1018/p/8042967.html
Copyright © 2011-2022 走看看