Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Show the site name
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

corneillie
Junior Member

140 Posts

Posted - 03 October 2003 :  09:31:52  Show Profile  Visit corneillie's Homepage
Hello,

What code do I need to use if I want to see the domainname on an asp page.

I would like to have a code that I put on an asp page and when I upload this to the server he shows me the name of the domain.

Example:

welcome to "www.snitz.com"

Thanks for your help.

dayve
Forum Moderator

USA
5820 Posts

Posted - 03 October 2003 :  10:53:55  Show Profile  Visit dayve's Homepage
Just use one of these.

<%=Request.ServerVariables("SERVER_NAME") %>

<%=Request.ServerVariables("HTTP_HOST") %>


Edited by - dayve on 03 October 2003 10:57:41
Go to Top of Page

corneillie
Junior Member

140 Posts

Posted - 03 October 2003 :  11:50:05  Show Profile  Visit corneillie's Homepage
Thank you very much !

Steven
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.29 seconds. Powered By: Snitz Forums 2000 Version 3.4.07