[thelist] Code Question

Michele Foster - WizarDev michele at wizardev.ca
Fri Jun 3 15:32:46 CDT 2005


----- Original Message ----- 
From: "Beach Computers" <Groups at beachcomp.com>

> Hello,
>
> I need to set the current domain as a variable in ASP.
> So for http://www.example.com/test.asp, I would want example.com.
> Any idea how to go about doing this?

You can use:

Request.ServerVariables("HTTP_HOST")

More:
http://devguru.com/Technologies/asp/quickref/request_servervariables.html

HTH,

Mich



More information about the thelist mailing list