Page Template Functionality
|Top Tutorials||New Tutorials||Submit||Login||Register|
Total Hits: 15521
Total Votes: 139 votes
Category: ASP/Content Management
Submitted on: 2008-03-05 04:41:29
Submitted By: Devesh Khanna
Description:This code formats pages of a web site dynamically, basing the layout, colours and formatting contained in an HTML template file which some custom tags we've defined. Running a web site from a template in this way has a number of advantages we'll look at later.
The buildpage.asp file needs to be included at the top of all content pages. It contains a function for looking up which template should be used (yes, you can get the page to choose one based on user selection, browser detection, entry page, etc.) and formatting two HTML chunks to be inserted at the top and bottom of each page, around the main page content. More detail...