<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CookieExample.aspx.cs" Inherits="StateManagement.CookieExample" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Cookie Example</title>
</head>
<body bgcolor="#6699ff">
<h3>Cookie Example - this example demonstrates writing and
reading cookies to maintain state.</h3>
<form id="form1" runat="server">
<asp:Label ID="Label1" runat="server" Text="Enter your name:"
style="z-index: 1; left: 17px; top: 90px; position: absolute; height: 19px"></asp:Label>
<asp:TextBox ID="txtName" runat="server"
style="z-index: 1; left: 138px; top: 92px; position: absolute; width: 198px"></asp:TextBox>
<asp:Label ID="lblDisplay" runat="server" Text=""
style="z-index: 1; left: 140px; top: 128px; position: absolute"></asp:Label>
<asp:Button ID="btnWriteCookie" runat="server"
style="z-index: 1; left: 140px; top: 162px; position: absolute; height: 26px; width: 119px"
Text="Write Cookie" OnClick="btnWriteCookie_Click" />
</form>
</body>
</html>