27. Using ASP.NET Master Pages and User Controls

The Need for a Common Layout

Think for a moment about your Internet viewing habits. When you are clicking links on a site, how do you determine whether the information you are viewing is on the same site as the previous page? Most of you will probably agree that the most prevalent indicator is the style and layout of the site. In other words, if I’m viewing an article on the CNET site and I click a link, if the new page has the same layout and appearance as the previous page, my assumption is that it’s the same site. That is exactly why a common layout is vital to the success of your site.

Web developers use many techniques to facilitate a common layout. One of the most common is the use of templates, ...

Get Microsoft® Expression® Web 4 In Depth: Updated for Service Pack 2 - HTML 5, CSS 3, JQuery, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.