亚洲免费乱码视频,日韩 欧美 国产 动漫 一区,97在线观看免费视频播国产,中文字幕亚洲图片

      1. <legend id="ppnor"></legend>

      2. 
        
        <sup id="ppnor"><input id="ppnor"></input></sup>
        <s id="ppnor"></s>

        獲取根目錄的URL例如http://localhost:51898

        字號:


            這篇文章主要介紹了獲取根目錄的URL的方法,需要的朋友可以參考下
            代碼如下:
            public static string GetRootURI()
            {
            string AppPath = "";
            HttpContext HttpCurrent = HttpContext.Current;
            HttpRequest Req;
            if (HttpCurrent != null)
            {
            Req = HttpCurrent.Request;
            string UrlAuthority = Req.Url.GetLeftPart(UriPartial.Authority);
            if (Req.ApplicationPath == null || Req.ApplicationPath == "/")
            //直接安裝在 Web 站點
            AppPath = UrlAuthority;
            else
            //安裝在虛擬子目錄下
            AppPath = UrlAuthority + Req.ApplicationPath;
            }
            return AppPath;
            }