<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

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

<head runat="server">

<title></title>

<style type="text/css">

.style1

{

width: 100%;

}

.style2

{

width: 148px;

}

.style3

{

width: 224px;

}

</style>

</head>

<body>

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

<div>

<br />

<br />

<table class="style1">

<tr>

<td colspan="3">

<asp:Label ID="lblMsg" runat="server"></asp:Label>

</td>

</tr>

<tr>

<td class="style2">

Shipper</td>

<td class="style3">

<asp:DropDownList ID="ddlShipper" runat="server">

<asp:ListItem>-- Please Select a Shipper--</asp:ListItem>

<asp:ListItem>US Postal Service</asp:ListItem>

<asp:ListItem>Overnight Express</asp:ListItem>

<asp:ListItem>United Shipping Service</asp:ListItem>

<asp:ListItem>WHL</asp:ListItem>

<asp:ListItem>Pony Express</asp:ListItem>

<asp:ListItem>Starship Transporter</asp:ListItem>

</asp:DropDownList>

</td>

<td>

<asp:RequiredFieldValidator ID="rfvShipper" runat="server"

ControlToValidate="ddlShipper" InitialValue="-- Please Select a Shipper --"

SetFocusOnError="True"

ErrorMessage="You did not select a shipper from the drop-down.">*</asp:RequiredFieldValidator>

</td>

</tr>

<tr>

<td class="style2">

Urgency</td>

<td class="style3">

<asp:RadioButtonList ID="rblUrgency" runat="server">

<asp:ListItem>Today</asp:ListItem>

<asp:ListItem>2nd Day</asp:ListItem>

<asp:ListItem>Normal</asp:ListItem>

<asp:ListItem>Yesterday</asp:ListItem>

</asp:RadioButtonList>

</td>

<td>

<asp:RequiredFieldValidator ID="rfvUrgency" runat="server"

ControlToValidate="rblUrgency" ErrorMessage="You need to select an Urgency"

SetFocusOnError="True">*</asp:RequiredFieldValidator>

</td>

</tr>

<tr>

<td class="style2">

Instructions</td>

<td class="style3">

<asp:TextBox ID="txtInstructions" runat="server" Height="71px"></asp:TextBox>

</td>

<td>

<asp:RequiredFieldValidator ID="rfvInstructions" runat="server"

ControlToValidate="txtInstructions" ErrorMessage="Please enter some instructions"

SetFocusOnError="True">*</asp:RequiredFieldValidator>

</td>

</tr>

<tr>

<td class="style2">

Number of Packages</td>

<td class="style3">

<asp:TextBox ID="txtNumPackages" runat="server"></asp:TextBox>

</td>

<td>

<asp:RequiredFieldValidator ID="rfvNumPackages" runat="server"

ControlToValidate="txtNumPackages"

ErrorMessage="You did not enter the number of packages">*</asp:RequiredFieldValidator>

<br />

<asp:CompareValidator ID="cvNumPackages" runat="server"

ErrorMessage="Invalid Number of Packages"

ControlToValidate="txtNumPackages" Operator="GreaterThan"

SetFocusOnError="True" Type="Integer" ValueToCompare="0">*</asp:CompareValidator>

<br />

<asp:CompareValidator ID="cvInputType" runat="server"

ErrorMessage="Not proper type"

ControlToValidate="txtNumPackages" Operator="DataTypeCheck"

SetFocusOnError="True" Type="Integer">*</asp:CompareValidator>

</td>

</tr>

<tr>

<td class="style2">

Password</td>

<td class="style3">

<br />

<asp:TextBox ID="txtPassword1" runat="server" TextMode="Password"></asp:TextBox>

<br />

<br />

<asp:TextBox ID="txtPassword2" runat="server"></asp:TextBox>

<br />

<br />

</td>

<td>

<asp:RequiredFieldValidator ID="rfvPassword1" runat="server"

ControlToValidate="txtPassword1" ErrorMessage="Please enter your password"

SetFocusOnError="True">*</asp:RequiredFieldValidator>

<br />

<br />

<asp:RequiredFieldValidator ID="rfvPassword2" runat="server"

ControlToValidate="txtPassword2"

ErrorMessage="Please fill enter your password again" SetFocusOnError="True">*</asp:RequiredFieldValidator>

<br />

<br />

<asp:CompareValidator ID="cvPassword2" runat="server"

ControlToCompare="txtPassword1" ControlToValidate="txtPassword2"

ErrorMessage="Passwords do not match">*</asp:CompareValidator>

</td>

</tr>

<tr>

<td class="style2">

Range betwee 10 &amp; 20</td>

<td class="style3">

<asp:TextBox ID="txtRange" runat="server"></asp:TextBox>

</td>

<td>

<asp:RangeValidator ID="rvRange" runat="server" ControlToValidate="txtRange"

ErrorMessage="Must be between 10 and 20" MaximumValue="20" MinimumValue="10"

Type="Integer">*</asp:RangeValidator>

</td>

</tr>

<tr>

<td class="style2">

&nbsp;</td>

<td class="style3">

<asp:Button ID="btnSubmit" runat="server" Text="Submit" />

</td>

<td>

&nbsp;</td>

</tr>

</table>

<asp:ValidationSummary ID="vsSummary" runat="server"

HeaderText="The following errors(s) were found:&quot;" />

<br /><br /><br />

</div>

</form>

</body>

</html>