通过本文主要向大家介绍了用asp.net开发网站,iis配置asp.net网站,iis发布asp.net网站,用asp.net做的网站,iis部署asp.net网站等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
Dim url, host_url, no_http, host_name As String '定义变量
url = HttpContext.Current.Request.Url.ToString '获取当前页的URL
no_http = url.Substring(url.IndexOf("//") + 2) '截取去掉HTTP://的URL
host_url = "http://" & no_http.Substring(0, no_http.IndexOf("/") + 1) '组合成当前网站的域名