O'Reilly logo

Applied ASP.NET 4 in Context by Adam Freeman

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

Building the Master Page

There are three elements in the master page for this project: the static image banner across the top of the page, the tabs that let the user select different pages in the application, and the footer that displays the totals across the bottom of the page. We'll tackle them in order of complexity, starting with the simplest.

Adding the Banner

The banner is a very simple addition to the page. It spans the page width and shows a simple image and some text. You can see the markup that defines the banner in Listing 21-2.

Listing 21-2. Adding the banner to the master page

<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site.master.cs" Inherits="TriathlonApp.Site" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 ...

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