国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 網站 > 建站經驗 > 正文

asp.net獲取網站目錄物理路徑示例

2019-11-02 15:54:22
字體:
來源:轉載
供稿:網友

 這篇文章主要介紹了asp.net獲取網站目錄物理路徑的方法,需要的朋友可以參考下

頁面后臺cs文件的相對網站根目錄的路徑/view/Atlas  代碼如下:string rootPath1= Server.MapPath("~"); string rootPath2 = Request.ApplicationPath; string path1 = Server.MapPath("upload"); string path2 = Server.MapPath(""); string path3 = Server.MapPath("."); string path4 = Server.MapPath(".."); string path5 = Server.MapPath(Request.ServerVariables["PATH_INFO"]);  結果  代碼如下:string rootpath1= "F:ASP.NET_Projects超凡裝飾cfzsWebcfzsWeb"; string rootpath2= "/Web"; string path1 = "F:ASP.NET_Projects超凡裝飾cfzsWebvie
游戲下載[www.aikan.tv/xzhtml/3/]
wAtlasuploadcfzsWebviewAtlasupload"; string path2 = "F:ASP.NET_Projects超凡裝飾cfzsWebviewAtlascfzsWebviewAtlas"; string path3 = "F:ASP.NET_Projects超凡裝飾cfzsWebviewAtlascfzsWebviewAtlas"; string path4 = "F:ASP.NET_Projects超凡裝飾cfzsWebviewcfzsWebview"; string path5 = "F:ASP.NET_Projects超凡裝飾cfzsWebviewAtlasAdd.aspxcfzsWebviewAtlasAdd.aspx";   
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 扬中市| 曲靖市| 咸丰县| 曲水县| 铜川市| 澎湖县| 福贡县| 长乐市| 都江堰市| 邢台市| 沿河| 平武县| 平原县| 天台县| 桓仁| 南涧| 鄢陵县| 旬邑县| 南昌市| 萨嘎县| 泰顺县| 洛隆县| 枣阳市| 微博| 奉新县| 加查县| 湖北省| 楚雄市| 镇赉县| 龙江县| 繁峙县| 吐鲁番市| 临桂县| 金寨县| 乳源| 灵璧县| 温州市| 乐安县| 东兰县| 龙口市| 台湾省|