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

 

<!DOCTYPE html>

 

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

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

    <title>Web Service Session State Example</title>

</head>

<body bgcolor="#9999ff">

   

    <h3>This Web Service example demonstrates maintaining the number of times a button was clicked using a Session

        on the web service.<br />

        </h3>

 

 

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

       

        <asp:Label ID="lblDisplay" runat="server" Font-Bold="True" Text="Click the button..."></asp:Label>

 

        <asp:Button ID="btnVote" runat="server" Text="Vote" Width="126px"

            style="z-index: 1; left: 12px; top: 119px; position: absolute" OnClick="btnVote_Click" />

  

        <asp:Button ID="btnViewResults" runat="server" Text="View Results" Width="126px"

            style="z-index: 5; left: 150px; top: 120px; position: absolute" OnClick="btnViewResults_Click" />

 

    </form>

 

</body>

</html>