I want to get the current domain so if the page is http://www.domain.com/page.asp I need www.domain.com
views:
137answers:
2<%= Request.ServerVariables("SERVER_NAME") %>
jessegavin
2010-01-27 17:31:04
+6
A:
Request.ServerVariables("SERVER_NAME")'
To be complete, one of my functions:
function PageUrl
dim sPort
sPort = Request.ServerVariables("SERVER_PORT")
if sPort = "80" then
sPort = ""
else
sPort = ":" & sPort
end if
PageUrl = "http://" & Request.ServerVariables("SERVER_NAME") & sPort & _
Request.ServerVariables("URL") & "?" & _
Request.ServerVariables("QUERY_STRING")
end function
Edelcom
2010-01-27 17:30:37