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 閱讀(707) 評論(0)  編輯  收藏

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


          網站導航:
           

          常用鏈接

          留言簿(5)

          隨筆分類

          隨筆檔案

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 莆田市| 吉林省| 休宁县| 大埔县| 威信县| 梓潼县| 武义县| 武功县| 长乐市| 金平| 团风县| 城固县| 隆德县| 凌源市| 中牟县| 安龙县| 道真| 张家港市| 库车县| 靖远县| 富平县| 泽普县| 桑日县| 金塔县| 项城市| 光山县| 明溪县| 土默特左旗| 廉江市| 汉川市| 萍乡市| 甘孜| 南丹县| 治县。| 潢川县| 清河县| 漯河市| 芒康县| 白城市| 吉首市| 吴堡县|