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

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