Page Template Functionality
Advertisements
| Top Tutorials | New Tutorials | Submit | Login | Register |
Tutorial Detail
Page Template Functionality
This ASP sample code formats pages of a web site dynamicallyhttp://www.asp101.com/articles/paul/templating/default.asp
Total Hits: 3802
Total Votes: 36 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...
Rating Detail
| Stars | Percentage | Total Vote |
|---|---|---|
![]() |
![]() ![]() 16.67% |
6 |
![]() ![]() |
![]() ![]() 16.67% |
6 |
![]() ![]() ![]() |
![]() ![]() 16.67% |
6 |
![]() ![]() ![]() ![]() |
![]() ![]() 16.67% |
6 |
![]() ![]() ![]() ![]() ![]() |
![]() ![]() 16.67% |
6 |





16.67%

16.67%

16.67%

16.67%

16.67%