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 ...

Get .NET Patterns: Architecture, Design, and Process now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.