could you explain WHY your using multiple headers?
I assume you mean you have made a few header files to be included eg "header1.asp", "header2.asp" and so on.
Couldnt you have one header file and use ASP to process the header the way you want it, eg
if you have categories for each product range maybe like "
Electronics |
Books |
Gifts"
and each had a different colour scheme you could maybe have a different CSS file for each and have at the top of every page
and the id would repersent the product categories like so:
1 - electronics
2 - books
3 - gifts
so you do
<link href="style_<%=intCategoryID%>.css" rel="stylesheet" type="text/css" /> |
and your colour scheme changes depending on the ID in the top of the page.
aswell as CSS you could have images eg
<img src="logo_<%=intCategoryID%>.gif"> |
and so on
if how ever the reason is alot more complex i would suggest using one include that selects the required include. eg:
<% select case intCategoryID
case 1
%><!--#include file="header1.asp"--><%
case 2
%><!--#include file="header2.asp"--><%
case 3
%><!--#include file="header3.asp"--><% case else
%><!--#include file="header-else.asp"--><% end select %> |
Edited by Scotty32 - 07 August 2007 at 8:25pm