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

 

 

<!DOCTYPE html>

 

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

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

    <title>Core 2.0 Web API Session State Example</title>

</head>

<body bgcolor="#9999ff">

   

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

        in the Web API. The Web API must be configured to handle Sessions (see the lecture slides for more information regarding

        how to configure your Web API).<br />

    </h3>

 

 

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

       

        <asp:Label ID="lblDisplay" runat="server" Font-Bold="True" Text="Click the button..." style="z-index: 1; left: 13px; top: 121px; position: absolute"></asp:Label>

 

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

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

  

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

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

 

    </form>

 

</body>

 

</html>