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 ...
Get Applied ASP.NET 4 in Context 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.