<%@ Page Title="" Language="C#" MasterPageFile="~/RegistrationForm/Site.Master" AutoEventWireup="true" CodeBehind="regform.aspx.cs" Inherits="CS440_Final_Exam_Gonzalez.RegistrationForm.regform" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MyContentPlaceHolder" runat="server">
<h5><center>To place your Secure order online via credit card, please fill out the information below.</center></h5>
<br /> <br />
<h4>Personal Information: </h4> <br />
<table cellpadding="3" cellspacing="3">
<tr>
<td>
<asp:RequiredFieldValidator ID="valFirstName" runat="server" ControlToValidate="FirstName" Display="Dynamic" ErrorMessage="*Error: Required Field" SetFocusOnError="True" ForeColor="Red"></asp:RequiredFieldValidator>
</td>
<td style="width: 5px"> </td>
<td>First Name:</td>
<td style="width: 5px"> </td>
<td>
<asp:TextBox ID="FirstName" runat="server"></asp:TextBox>
</td>
<td style="width: 44px"> </td>
<td style="width: 80px">Country:</td>
<td width="5" style="width: 4px"> </td>
<td>
<asp:TextBox ID="Country" runat="server"></asp:TextBox>
</td>
<td width="5"> </td>
<td>
<asp:RequiredFieldValidator ID="valCountry" runat="server" ControlToValidate="Country" Display="Dynamic" ErrorMessage="*Error: Required Field" SetFocusOnError="True" ForeColor="Red"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td width="5"> </td>
</tr>
<tr>
<td style="height: 69px">
<asp:RequiredFieldValidator ID="valMiddleName" runat="server" ControlToValidate="MiddleName" Display="Dynamic" ErrorMessage="*Error: Required Field" SetFocusOnError="True" ForeColor="Red"></asp:RequiredFieldValidator>
</td>
<td style="width: 5px"> </td>
<td style="height: 69px">Middle Name:</td>
<td style="width: 5px"> </td>
<td style="height: 69px">
<asp:TextBox ID="MiddleName" runat="server" OnTextChanged="MiddleName_TextChanged"></asp:TextBox>
</td>
<td style="width: 44px"> </td>
<td style="width: 80px; height: 69px;">State/Province:</td>
<td width="5" style="width: 4px"> </td>
<td style="height: 69px">
<asp:TextBox ID="State" runat="server"></asp:TextBox>
</td>
<td width="5"> </td>
<td style="height: 69px">
<asp:RequiredFieldValidator ID="valState" runat="server" ControlToValidate="State" Display="Dynamic" ErrorMessage="*Error: Required Field" SetFocusOnError="True" ForeColor="Red"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td width="5"> </td>
</tr>
<tr>
<td style="height: 35px">
<asp:RequiredFieldValidator ID="valLastName" runat="server" ControlToValidate="LastName" Display="Dynamic" ErrorMessage="*Error: Required Field" SetFocusOnError="True" ForeColor="Red"></asp:RequiredFieldValidator>
</td>
<td style="width: 5px"> </td>
<td style="height: 35px">Last Name:</td>
<td style="width: 5px"> </td>
<td style="height: 35px">
<asp:TextBox ID="LastName" runat="server"></asp:TextBox>
</td>
<td style="width: 44px"> </td>
<td width="5" style="height: 35px">City:</td>
<td width="5"> </td>
<td width="5" style="height: 35px; width: 169px;">
<asp:TextBox ID="City" runat="server"></asp:TextBox>
</td>
<td width="5"> </td>
<td style="height: 35px">
<asp:RequiredFieldValidator ID="valCity" runat="server" ControlToValidate="City" CssClass="red" Display="Dynamic" ErrorMessage="*Error: Required Field" SetFocusOnError="True" ForeColor="Red"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td width="5"> </td>
</tr>
<tr>
<td>
<asp:RequiredFieldValidator ID="valPhone" runat="server" ControlToValidate="PhoneNumber" Display="Dynamic" ErrorMessage="*Error: Required Field" SetFocusOnError="True" ForeColor="Red"></asp:RequiredFieldValidator>
</td>
<td style="width: 5px"> </td>
<td>Phone Number:</td>
<td style="width: 5px"> </td>
<td>
<asp:TextBox ID="PhoneNumber" runat="server"></asp:TextBox>
</td>
<td style="width: 44px"> </td>
<td style="width: 80px">Zip Code:</td>
<td width="5"> </td>
<td>
<asp:TextBox ID="ZipCode" runat="server" Columns="6"></asp:TextBox>
</td>
<td width="5"> </td>
<td>
<asp:RequiredFieldValidator ID="valZip" runat="server" ControlToValidate="ZipCode" CssClass="red" Display="Dynamic" ErrorMessage="*Error: Required Field" SetFocusOnError="True" ForeColor="Red"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td width="5"> </td>
</tr>
<tr>
<td>
<asp:RequiredFieldValidator ID="valEmail" runat="server" ControlToValidate="Email" Display="Dynamic" ErrorMessage="*Error: Required Field" SetFocusOnError="True" ForeColor="Red"></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="emailformatvalidator" runat="server" ControlToValidate="Email" Display="Dynamic" ErrorMessage="Error: Invalid Format" ForeColor="Red" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
</td>
<td style="width: 5px"> </td>
<td>Email: </td>
<td style="width: 5px"> </td>
<td>
<asp:TextBox ID="Email" runat="server"></asp:TextBox>
</td>
<td style="width: 44px"> </td>
<td style="width: 80px">Address:</td>
<td width="5"> </td>
<td>
<asp:TextBox ID="Address" runat="server"></asp:TextBox>
</td>
<td width="5"> </td>
<td>
<asp:RequiredFieldValidator ID="valAddress" runat="server" ControlToValidate="Address" Display="Dynamic" ErrorMessage="*Error: Required Field" SetFocusOnError="True" ForeColor="Red"></asp:RequiredFieldValidator>
</td>
</tr>
</table>
<br /> <br />
<h4>Registration Information: </h4> <br />
<table cellpadding="3" cellspacing="3">
<tr>
<td style="width: 21px; height: 49px;"></td>
<td style="width: 180px; height: 49px;">Are You a Full Time Student?</td>
<td style="width: 358px; height: 49px;">
<asp:DropDownList ID="isstudent" runat="server" AutoPostBack="True" OnSelectedIndexChanged="isstudent_SelectedIndexChanged">
<asp:ListItem Value="0" Selected="True">No</asp:ListItem>
<asp:ListItem Value="1">Yes</asp:ListItem>
</asp:DropDownList>
</td>
<td style="width: 21px; height: 49px;"></td>
</tr>
<tr>
<td style="width: 21px; height: 29px;"></td>
<td style="width: 180px; height: 29px;"></td>
<td style="width: 358px; height: 29px;"></td>
</tr>
<tr>
<td style="width: 21px"> </td>
<td style="width: 180px">Pick A Registration Option: </td>
<td style="width: 358px">
<asp:DropDownList ID="Registration_Choice" runat="server" OnSelectedIndexChanged="Registration_Choice_SelectedIndexChanged" AutoPostBack="True" Width="344px">
<asp:ListItem Value="575" Selected="True">Early Registration (by May 7th)- $575</asp:ListItem>
<asp:ListItem Value="50">Pre-Conference Workshop Only- $50</asp:ListItem>
<asp:ListItem Value="675">Regular Registration (by July 31)- $675</asp:ListItem>
<asp:ListItem Value="800">Late Registration (after July 31) - $800</asp:ListItem>
<asp:ListItem Value="525">Exhibitor/Sponser (one per exhibit space) - $525</asp:ListItem>
<asp:ListItem Value="300">One Day- $300</asp:ListItem>
</asp:DropDownList>
<asp:DropDownList ID="Registration_Choice_Student" runat="server" OnSelectedIndexChanged="Registration_Choice_SelectedIndexChanged" AutoPostBack="True" Visible="False" Width="344px">
<asp:ListItem Value="150" Selected="True">Student- $150</asp:ListItem>
<asp:ListItem Value="50">Pre-Conference Workshop Only- $50</asp:ListItem>
</asp:DropDownList>
</td>
<td style="width: 21px">
</td>
</tr>
<tr>
<td style="width: 21px"> </td>
<td style="width: 180px"> </td>
<td style="width: 358px">
</td>
<td style="width: 21px">
</td>
</tr>
<tr>
<td style="width: 21px"> </td>
<td style="width: 180px">
<asp:Label ID="preconflab" runat="server" Text="Will You Be Attending the Pre-Conference Workshop?"></asp:Label>
</td>
<td style="width: 358px">
<asp:DropDownList ID="preconf" runat="server" OnSelectedIndexChanged="preconf_SelectedIndexChanged">
<asp:ListItem Value="1" Selected="True">Yes</asp:ListItem>
<asp:ListItem Value="0">No</asp:ListItem>
</asp:DropDownList>
</td>
<td style="width: 21px"> </td>
</tr>
</table>
<br />
<br />
<h4>Billing Address: </h4> <br />
<p> Billing Address is The Same as Home Address: <asp:CheckBox ID="billaddresscheck" runat="server" Text=" Yes" OnCheckedChanged="billaddresscheck_CheckedChanged" AutoPostBack="True" />
</p>
<table class="w-100">
<tr>
<td style="width: 21px"> </td>
<td style="width: 167px"> </td>
<td style="width: 240px"> </td>
<td> </td>
</tr>
<tr>
<td style="width: 21px"> </td>
<td style="width: 167px">Country:</td>
<td style="width: 240px">
<asp:TextBox ID="bill_country" runat="server" OnTextChanged="bill_country_TextChanged"></asp:TextBox>
</td>
<td>
<asp:RequiredFieldValidator ID="valbillCountry" runat="server" ControlToValidate="bill_country" Display="Dynamic" ErrorMessage="*Error: Required Field" SetFocusOnError="True" ForeColor="Red"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td style="width: 21px; height: 22px;"></td>
<td style="width: 167px; height: 22px;"></td>
<td style="height: 22px; width: 240px"></td>
<td style="height: 22px"> </td>
</tr>
<tr>
<td style="width: 21px"> </td>
<td style="width: 167px">State/Province:</td>
<td style="width: 240px">
<asp:TextBox ID="bill_state" runat="server" OnTextChanged="bill_country_TextChanged"></asp:TextBox>
</td>
<td>
<asp:RequiredFieldValidator ID="valbillstate" runat="server" ControlToValidate="bill_state" Display="Dynamic" ErrorMessage="*Error: Required Field" SetFocusOnError="True" ForeColor="Red"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td style="width: 21px"> </td>
<td style="width: 167px"> </td>
<td style="width: 240px"> </td>
<td> </td>
</tr>
<tr>
<td style="width: 21px"> </td>
<td style="width: 167px">City:</td>
<td style="width: 240px">
<asp:TextBox ID="bill_city" runat="server" OnTextChanged="bill_country_TextChanged"></asp:TextBox>
</td>
<td>
<asp:RequiredFieldValidator ID="valbillcity" runat="server" ControlToValidate="bill_city" Display="Dynamic" ErrorMessage="*Error: Required Field" SetFocusOnError="True" ForeColor="Red"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td style="width: 21px"> </td>
<td style="width: 167px"> </td>
<td style="width: 240px"> </td>
<td> </td>
</tr>
<tr>
<td style="width: 21px"> </td>
<td style="width: 167px">Zip Code:</td>
<td style="width: 240px">
<asp:TextBox ID="bill_zip" runat="server" OnTextChanged="bill_country_TextChanged"></asp:TextBox>
</td>
<td>
<asp:RequiredFieldValidator ID="valbillzip" runat="server" ControlToValidate="bill_zip" Display="Dynamic" ErrorMessage="*Error: Required Field" SetFocusOnError="True" ForeColor="Red"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td style="width: 21px"> </td>
<td style="width: 167px"> </td>
<td style="width: 240px"> </td>
<td> </td>
</tr>
<tr>
<td style="width: 21px"> </td>
<td style="width: 167px">Address:</td>
<td style="width: 240px">
<asp:TextBox ID="bill_address" runat="server" OnTextChanged="bill_country_TextChanged"></asp:TextBox>
</td>
<td>
<asp:RequiredFieldValidator ID="valbilladdress" runat="server" ControlToValidate="bill_address" Display="Dynamic" ErrorMessage="*Error: Required Field" SetFocusOnError="True" ForeColor="Red"></asp:RequiredFieldValidator>
</td>
</tr>
</table>
<br />
<br />
<br />
<h4>Credit Card Information:</h4>
<br />
<table class="w-100">
<tr>
<td style="width: 21px"> </td>
<td style="width: 167px"> </td>
<td style="width: 240px"> </td>
<td> </td>
</tr>
<tr>
<td style="width: 21px"> </td>
<td style="width: 167px">Card Name:</td>
<td style="width: 240px">
<asp:TextBox ID="cardname" runat="server" OnTextChanged="bill_country_TextChanged"></asp:TextBox>
</td>
<td>
<asp:RequiredFieldValidator ID="valcardname" runat="server" ControlToValidate="cardname" Display="Dynamic" ErrorMessage="*Error: Required Field" SetFocusOnError="True" ForeColor="Red"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td style="width: 21px; height: 22px;"></td>
<td style="width: 167px; height: 22px;"></td>
<td style="height: 22px; width: 240px"></td>
<td style="height: 22px"> </td>
</tr>
<tr>
<td style="width: 21px; height: 28px;"></td>
<td style="width: 167px; height: 28px;">Card Type</td>
<td style="width: 240px; height: 28px">
<asp:DropDownList ID="DropDownList1" runat="server">
<asp:ListItem Selected="True">Visa</asp:ListItem>
<asp:ListItem>MasterCard</asp:ListItem>
</asp:DropDownList>
</td>
<td style="height: 28px"> </td>
</tr>
<tr>
<td style="width: 21px"> </td>
<td style="width: 167px"> </td>
<td style="width: 240px"> </td>
<td> </td>
</tr>
<tr>
<td style="width: 21px"> </td>
<td style="width: 167px">Card Number</td>
<td style="width: 240px">
<asp:TextBox ID="cardnumber" runat="server" OnTextChanged="bill_country_TextChanged"></asp:TextBox>
</td>
<td>
<asp:RequiredFieldValidator ID="valcardnumber" runat="server" ControlToValidate="cardnumber" Display="Dynamic" ErrorMessage="*Error: Required Field" SetFocusOnError="True" ForeColor="Red"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td style="width: 21px"> </td>
<td style="width: 167px"> </td>
<td style="width: 240px"> </td>
<td> </td>
</tr>
<tr>
<td style="width: 21px"> </td>
<td style="width: 167px">Experation Month and Year</td>
<td style="width: 240px"> <asp:TextBox ID="expmonth" runat="server" OnTextChanged="bill_country_TextChanged" Width="31px"></asp:TextBox>
/
<asp:TextBox ID="expyear" runat="server" OnTextChanged="bill_country_TextChanged" Width="31px"></asp:TextBox>
</td>
<td>
<asp:RequiredFieldValidator ID="valexpmonth" runat="server" ControlToValidate="expmonth" Display="Dynamic" ErrorMessage="*Error: Required Field" SetFocusOnError="True" ForeColor="Red"></asp:RequiredFieldValidator>
<asp:RequiredFieldValidator ID="valexpyear" runat="server" ControlToValidate="expyear" Display="Dynamic" ErrorMessage="*Error: Required Field" SetFocusOnError="True" ForeColor="Red"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td style="width: 21px"> </td>
<td style="width: 167px"> </td>
<td style="width: 240px"> </td>
<td> </td>
</tr>
<tr>
<td style="width: 21px"> </td>
<td style="width: 167px"> </td>
<td style="width: 240px"> </td>
<td> </td>
</tr>
</table>
<center><asp:Button ID="submit_button" runat="server" Text="Submit" OnClick="submit_button_Click" /></center>
</asp:Content>