Request獲取url各種信息的方法

          1、Request獲取url各種信息的方法

            測試的url地址:http://www.test123.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.test123.com/testweb/default.aspx
            Request.Url.Host: www.test.com
            Request.Url.LocalPath: /testweb/default.aspx

          posted on 2012-12-23 17:33 sanmao 閱讀(706) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           

          常用鏈接

          留言簿(5)

          隨筆分類

          隨筆檔案

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 吴忠市| 隆回县| 奇台县| 崇义县| 扶绥县| 闸北区| 白玉县| 丹江口市| 宣恩县| 嘉义市| 淮北市| 巫溪县| 晴隆县| 凤庆县| 乳源| 承德市| 缙云县| 乾安县| 桦南县| 台湾省| 阳原县| 北流市| 定陶县| 房产| 呼图壁县| 棋牌| 雅江县| 鹤岗市| 澄迈县| 永济市| 资源县| 河北区| 项城市| 久治县| 铜陵市| 雷山县| 博湖县| 广灵县| 利辛县| 余姚市| 岱山县|