If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Add CSS reference to header on the fly

Hello,

I think that i am screwed, but i wanted to post this question before i kill myself :-)

we have a site with several thousands of .ASP pages. we are getting ready to implement a new flyout menu. this menu is controlled by a style sheet. the menu is called from an include file (header.inc). each ASP page has it's own

Code:

<html><head></head></html>

tags. i am racking my brain trying to figure out how i can add the reference to the stylesheet without having to add it to each individual page on the site.

does anyone know of a way that you can add a CCS reference to the HTML HEAD tag on the fly (or at least after the page has rendered)?

the only thing i could think was to create a thin ISAPI filter that looks for the HEAD tag and inserts the reference....

the header.inc file does not contain the html HEAD tag. it is simply a file that sets up a bunch of session variables and then calls the xml that builds the menu. each ASP page on the site has its own HTML, HEAD, and BODY tag.