CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Dynamic Headers?

Print topic Send  topic

Author Message
cruisin

Posts: 31
Posted: 01/12/2009, 4:01 AM

I have a site which is aliased by several domains. I'm trying to create a dynamic header based on the domain that is selected. It's not quite working.

<%
Function header_BeforeOutput(Sender) 'header_BeforeOutput @1-02A5E4A7

'Custom Code @2-73254650
' -------------------------
Dim header
Dim PathInfo

PathInfo = Request.ServerVariables("SERVER_NAME")
Select Case PathInfo
Case "www.domain1.com"
TemplateFileName = "header.html"
Case "www.domain2.com"
TemplateFileName = "header1.html"
Case "www.domain3.com"
TemplateFileName = "header2.html"
Case "www.domain4.com"
TemplateFileName = "header3.html"
Case Else
TemplateFileName = "header.html"
End Select
' -------------------------
'End Custom Code

End Function 'Close header_BeforeOutput @1-54C34B28


%>

It's picking up the domain information, it's just not doing anything with it. Suggestions?
View profile  Send private message
Oper


Posts: 1195
Posted: 01/12/2009, 7:24 AM

if you using an include dont think you could alter that simple.

i will suggest a simple way:
create a Simple header Include
and that Include should load the HTML from a Database depending on Domains

if just and image? more simple bur same approach
_________________
____________________________
http://www.7bz.com (Free CMS,CRM Developed in CCS)

http://www.PremiumWebTemplate.com
Affiliation Web Site Templates

Please do backup first
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.