O'Reilly logo

.NET Patterns: Architecture, Design, and Process by Christian Thilmany

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Webform Template

Intent

Provide an automatic template framework that ensures that all pages within a site have a consistent appearance.

Problem

Many approaches exist to keep a consistent look and feel between all the pages in a site. Unfortunately, most approaches tend to require a significant level of coordination or setup to implement, either initially or on each page.

This pattern is intended to simplify creating the consistent interface, as well as integrated standard error handling.

Forces

Use the WebForm Template pattern when:

  • You have a Web site for which you want to keep a consistent look across all the pages

Structure

The WebForm Template pattern (Figure 3.10) places most of the implementation in a base class for all Web forms in your ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required