在ASP.NET里得到网站的域名
2017-02-06
19
Dim url, host_url, no_http, host_name As String "定义变量url = HttpContext.Current.Request.Url.ToString "获取当前页的URLno_http = url.Substring(url.IndexOf("//") + 2) "截取去掉HTTP://的URLhost_url = "http://" & no_http.Substring(0, no_http.Index...