• [转载]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

  • 相关阅读:
    Linux shell 常用命令记录
    [Bat]批量重命名文件
    【转】java术语(PO/POJO/VO/BO/DAO/DTO)
    TesseractOCR3.0语言库训练步骤
    关于Delphi Rtti对应TDatetime的一些启示
    Ubuntu Server 12.04 安装mysql 5.6.10
    Delphi透明 圆角 窗体 【转】
    奇怪的~用法
    很有用的VS2005插件——SlickEdit
    还不习惯Office 2007
  • 原文地址:https://www.cnblogs.com/LD1018/p/8042967.html
Copyright © 2020-2023  润新知