[thelist] includes (sub question)

Ken Schaefer ken at adOpenStatic.com
Mon Feb 10 17:35:01 CST 2003


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: "Rob Smith" <rob.smith at THERMON.com>
Subject: RE: [thelist] includes (sub question)


: <tip type="Consistent Navigation Trick" author="Rob.Smith">
: Place your entire navigation inside an .inc (include file) and simply call
: it by:
:
: <!-- #include virtual="/inc/nav.inc" -->
:
: That way changes are automatically brought across the board. Other ideas
: that can spawn off this are the header to each page, footer, etc.
:
: My experience dictates that this works in .asp files.
: </tip>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Better would be to create re-usable routines (or classes) to handle this for
you, rather than having inline includes. At a minimum:

<!-- #include virtual="/inc/HTML/WritePage.asp" -->
<html>
    <head>
        <% Call WriteHeader() %>
    <head>

    <body>
        <% Call WriteBody() %>
    </body>
</html>

Cheers
Ken




More information about the thelist mailing list