<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ApplicationExample1.aspx.cs" Inherits="StateManagement.ApplicationExample1" %>

 

<!DOCTYPE html>

 

<html xmlns="http://www.w3.org/1999/xhtml">

<head id="Head1" runat="server">

    <title>Application State Example</title>

</head>

<body bgcolor="#9999ff">

   

    <h3>This Application State Example demonstrates maintaining the number of times a button was clicked

        for all sessions of the web application through the use of the Application

        variable.<br />

    </h3>

 

 

    <form id="form1" runat="server">

       

        <asp:Label ID="lblDisplay" runat="server" Font-Bold="True"

            Text="Record your vote for &quot;People Magazine's 2013 Sexiest Man Alive&quot;"

            Font-Size="Large" ForeColor="#003366"></asp:Label>

                  

        <asp:Button ID="btnRecordVote" runat="server" Text="Record Vote"              

            style="z-index: 1; left: 14px; top: 225px; position: absolute; width: 182px; height: 26px;"

     OnClick="btnRecordVote_Click" />

 

        <asp:RadioButtonList ID="rboCandidates" runat="server">

            <asp:ListItem Selected="True">Christopher M. Pascucci</asp:ListItem>

            <asp:ListItem>George Clooney</asp:ListItem>

            <asp:ListItem>Matt Damon</asp:ListItem>

            <asp:ListItem>Denzel Washington</asp:ListItem>

        </asp:RadioButtonList>

 

    </form>

 

</body>

</html>