Shared Tutorials

Tutorials Shared by the Internet Community


  Top Tutorials     New Tutorials     Submit     Login     Register  

Tutorial Basic Detail

Page Template Functionality

This ASP sample code formats pages of a web site dynamically


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.

Rating Detail

 Stars  Percentage  Total Vote
 One star  Vote LeftVote MiddleVote Right 37.58%  56
 Two starsTwo star  Vote LeftVote MiddleVote Right 10.74%  16
 Three starsThree starsThree stars  Vote LeftVote MiddleVote Right 12.08%  18
 Four starsFour starsFour starsFour stars  Vote LeftVote MiddleVote Right 11.41%  17
 Five starsFive starsFive starsFive starsFive stars  Vote LeftVote MiddleVote Right 28.19%  42

Caste Your Vote

 Rating  Selection  Guidelines
 Poor:     Very disappointing, useless.
 Fair:     Below average, disappointing but not useless.
 Good:     About average in its class.
 Very Good:     Above average for its category.
 Excellent:     One of the best Tutorials in its category.