<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CapitalsGame_CB.aspx.cs" Inherits="NoCodeBehind.CapitalsGame_CB" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Capitals Game with CodeBehind</title>
</head>
<body bgcolor="#ffcc99">
<form id="Form1" runat="server">
<table width="700px">
<tr>
<td width="200px">
<asp:label id="Label1" runat="server" height="27px" width="112px" forecolor="Red">Select a
State: </asp:label>
</td>
<td width="500px">
<asp:dropdownlist id="lstStates" runat="server" height="37px" width="133px">
<asp:ListItem value="Pennsylvania">Pennsylvania</asp:ListItem>
<asp:ListItem value="New Jersey">New
Jersey</asp:ListItem>
<asp:ListItem value="New York">New
York</asp:ListItem>
</asp:dropdownlist>
</td>
</tr>
<tr>
<td><asp:TextBox runat="server" ID="txtCapital" width="133px" /></td>
<td><asp:Button runat="server" Text="Submit Capital" ID="btnCapital" OnClick="btnCapital_Click" />
<asp:Button runat="server" Text="What is the
answer?" ID="btnAnswer" />
</td>
</tr>
<tr>
<td colspan="2">The Capital is
<asp:label id="lblCapital" runat="server" forecolor="Red"></asp:label>
</td>
<td>
</td>
</tr>
</table>
</form>
</body>
</html>