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

  • 相关阅读:
    js-高级06-正则
    js-高级05-javaScript处理机制
    js-高级04-函数高级应用
    js-高级03-面向对象的继承
    js-高级02-贪吃蛇案例分析
    js-高级01面向对象及创建对象
    js-API 06 高级动画二
    js-API 05 高级动画
    对象数组 数组对象 增删改查 数组
    jQuery ajax请求 一般请求和自定义请求
  • 原文地址:https://www.cnblogs.com/LD1018/p/8042967.html
Copyright © 2011-2022 走看看