Building the Performance Page

We have dealt with all the complex parts of this application. All that remain are a couple of pages that are largely similar to their Part II implementations. The Performance page is relatively simple; you can see the markup in Listing 21-17. I use a data source control to populate a DropDownList with the names of the athletes in the database and use individual Label controls in a regular HTML table to display data values. This is an approach I use often, using regular HTML for elements that don't change and Web Forms controls when I need to set a value in the code-behind class or when I want to receive and process events.

Listing 21-17. The markup for the Performance.aspx page

<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" ...

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.