This is how I handle header/footer in CF - I imagine it would translate
nicely to ASP, PHP, JSP, etc.

In the Application.cfm file I place the following at the bottom of the
page:

* #request.here# is a variable containing the current template name

<cfset
excludeList="header,footer,any-other-page-that-excludes-the-header-foote
r">
<cfif compare2List(excludeList,request.here) NEQ true>
        <cfinclude template="header.cfm">
        <cfinclude template="#request.here#">
        <cfinclude template="footer.cfm">
        <cfabort>
</cfif>

This way every page I write has a header/footer by default without
having to code in the cfinclude on each template. If a page doesn't need
the header/footer I put it in the ExcludeList variable.

You could do something similar with ASP.

Joshua Miller
Head Programmer / IT Manager
Garrison Enterprises Inc.
www.garrisonenterprises.net
[EMAIL PROTECTED]
(704) 569-9044 ext. 254
 
************************************************************************
*************
Any views expressed in this message are those of the individual sender,
except where the sender states them to be the views of 
Garrison Enterprises Inc.
 
This e-mail is intended only for the individual or entity to which it is
addressed and contains information that is private and confidential. If
you are not the intended recipient you are hereby notified that any
dissemination, distribution or copying is strictly prohibited. If you 
have received this e-mail in error please delete it immediately and
advise us by return e-mail to [EMAIL PROTECTED]
************************************************************************
*************


-----Original Message-----
From: Jeff Chastain [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 25, 2003 4:33 PM
To: CF-Talk
Subject: OT: ASP version of onRequestEnd.cfm


Does anybody know how to simulate the function of onRequestEnd.cfm in
ASP? I have an ASP app (that has to stay in ASP) where I need to add a
footer to the bottom of a bunch (100+) pages.  Rather than attempting to
find and edit each of these pages, it would be much nicer to put the
footer code in an onRequestEnd type function.
 
Thanks
-- Jeff


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to