[thelist] Code Question

Peter Brunone (EasyListBox.com) peter at easylistbox.com
Fri Jun 3 15:16:16 CDT 2005

   Read up on the ServerVariables collection ( the page at
http://authors.aspalliance.com/peterbrunone/servervars.asp has a list of all of them).  In your case, you'll want either HTTP_HOST or SERVER_NAME.  These variables can be read with the following syntax:

myValue = Request.ServerVariables("SERVER_NAME")



From: "Beach Computers" <Groups at beachcomp.com>
Sent: Friday, June 03, 2005 1:10 PM
To: thelist at lists.evolt.org
Subject: [thelist] Code Question 


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? 



* * Please support the community that supports you. * *

For unsubscribe and other options, including the Tip Harvester 
and archives of thelist go to: http://lists.evolt.org 
Workers of the Web, evolt ! 

More information about the thelist mailing list