<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SerializationExample1.aspx.cs" Inherits="Serialization.SerializationExample1" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Serialization Example</title>
</head>
<body bgcolor="#99ccff">
<h3>This example demonstrates serializing an object and
storing it in a database.</h3>
<form id="form1" runat="server">
<asp:Button ID="btnFindByID" runat="server" Height="31px"
style="z-index: 1; left: 223px; top: 96px; position: absolute; width: 179px;"
Text="Find Account By ID" OnClick="btnFindByID_Click" />
<asp:Button ID="btnFindByName" runat="server" Height="31px"
style="z-index: 1; left: 415px; top: 97px; position: absolute; width: 179px;"
Text="Find Accounts By
Name" OnClick="btnFindByName_Click" />
<asp:Label ID="lblDisplay" runat="server" Font-Bold="True"
style="z-index: 1; left: 21px; top: 71px; position: absolute"></asp:Label>
<asp:TextBox ID="txtAccountInfo" runat="server"
style="z-index: 1; left: 17px; top: 97px; position: absolute; height: 19px;"
Width="189px"></asp:TextBox>
<asp:GridView ID="gvAccounts" runat="server"
style="z-index: 1; left: 416px; top: 149px; position: absolute; height: 133px; width: 187px">
</asp:GridView>
<asp:TextBox ID="txtCreditCardNumber" runat="server"
style="z-index: 1; left: 104px; top: 188px; position: absolute; height: 19px;"
Width="189px"></asp:TextBox>
<asp:Label ID="Label1" runat="server"
style="z-index: 1; left: 48px; top: 186px; position: absolute" Text="Card #:"></asp:Label>
<asp:Label ID="Label2" runat="server"
style="z-index: 1; left: 33px; top: 221px; position: absolute"
Text="Exp Date:"></asp:Label>
<asp:DropDownList ID="ddlMonth" runat="server"
style="z-index: 1; left: 103px; top: 224px; position: absolute">
<asp:ListItem>1</asp:ListItem>
<asp:ListItem>2</asp:ListItem>
<asp:ListItem>3</asp:ListItem>
<asp:ListItem>4</asp:ListItem>
<asp:ListItem>5</asp:ListItem>
<asp:ListItem>6</asp:ListItem>
<asp:ListItem>7</asp:ListItem>
<asp:ListItem>8</asp:ListItem>
<asp:ListItem>9</asp:ListItem>
<asp:ListItem>10</asp:ListItem>
<asp:ListItem>11</asp:ListItem>
<asp:ListItem>12</asp:ListItem>
</asp:DropDownList>
<asp:DropDownList ID="ddlYear" runat="server"
style="z-index: 1; left: 160px; top: 224px; position: absolute; bottom: 246px">
<asp:ListItem>2012</asp:ListItem>
<asp:ListItem>2013</asp:ListItem>
<asp:ListItem>2014</asp:ListItem>
<asp:ListItem>2015</asp:ListItem>
<asp:ListItem>2016</asp:ListItem>
<asp:ListItem>2017</asp:ListItem>
<asp:ListItem>2018</asp:ListItem>
<asp:ListItem>2020</asp:ListItem>
</asp:DropDownList>
<asp:DropDownList ID="ddlCardType" runat="server"
style="z-index: 1; left: 105px; top: 152px; position: absolute; height: 22px">
<asp:ListItem>American Express</asp:ListItem>
<asp:ListItem>Discover</asp:ListItem>
<asp:ListItem>MasterCard</asp:ListItem>
<asp:ListItem>Visa</asp:ListItem>
</asp:DropDownList>
<asp:Label ID="Label3" runat="server"
style="z-index: 1; left: 25px; top: 152px; position: absolute; right: 653px"
Text="Card Type:"></asp:Label>
<asp:Label ID="lblCardInfo" runat="server" Font-Bold="True"
style="z-index: 1; left: 19px; top: 307px; position: absolute"></asp:Label>
<asp:Button ID="btnRetrieveCardInfo" runat="server"
style="z-index: 1; left: 16px; top: 266px; position: absolute; height: 29px; width: 167px"
Text="Retrieve Card On
File" OnClick="btnRetrieveCardInfo_Click" />
<asp:Button ID="btnStoreCard" runat="server"
style="z-index: 1; left: 195px; top: 266px; position: absolute; height: 29px; width: 167px"
Text="Store Card Information" OnClick="btnStoreCard_Click" />
</form>
</body>
</html>