Building the Calculator Page

The remaining page is even simpler. However, for variety, I have used a Web Forms Table control, as shown in Listing 21-19.

Listing 21-19. The markup for the Calculator.aspx page

<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Calculator.aspx.cs" Inherits="TriathlonApp.Calculator" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">     <title>Calculator</title>     <style type="text/css">         table.CalcTable {margin:20px;float:left}     </style> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"> <asp:Table ID="Table1" runat="server" CssClass="CalcTable">    <asp:TableRow>         <asp:TableCell>Laps:</asp:TableCell> ...

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.