<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" 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>Untitled Page</title>
    <style type="text/css">
        #form2
        {
            height: 355px;
        }
    </style>
</head>
<body>
    <form id="form2" runat="server">
    <div>
        <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Italic="False" 
            Font-Size="12pt" style="position :absolute; top: 18px; left: 74px;" 
            Text="User Name:"></asp:Label>
    </div>
    <asp:Label ID="Label2" runat="server" Font-Bold="True" Font-Size="12pt" 
        style="position:absolute; top: 49px; left: 73px;" Text="Password:"></asp:Label>
    <p>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
            ControlToValidate="Username" ErrorMessage="Enter user name" 
            style="position:absolute; top: 16px; left: 406px;">*</asp:RequiredFieldValidator>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
            ControlToValidate="Password" ErrorMessage="Enter password" 
            style="position:absolute; top: 52px; left: 409px;">*</asp:RequiredFieldValidator>
    </p>
    <p>
        <asp:Label ID="Label4" runat="server" Font-Bold="True" Font-Size="12pt" 
            style="position:absolute; top: 121px; left: 76px;" Text="E-mail:"></asp:Label>
        <asp:Label ID="Label5" runat="server" Font-Bold="True" Font-Size="12pt" 
            style="position:absolute; top: 157px; left: 74px; right: 781px;" Text="Age:"></asp:Label>
        <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="Age" 
            ErrorMessage="Out of range" MaximumValue="&quot;120&quot;" 
            MinimumValue="&quot;0&quot;" 
            style="position:absolute; top: 167px; left: 408px;">*</asp:RangeValidator>
    <asp:ValidationSummary ID="ValidationSummary1" 
        style="position:absolute; top: 239px; left: 229px;" runat="server" 
        HeaderText="Error messages" ShowMessageBox="True" ShowSummary="False" />
    <asp:TextBox ID="Username" runat="server" Font-Bold="True" Font-Size="12pt" 
        style="top: 15px; left: 245px; position: absolute; height: 22px; width: 139px"></asp:TextBox>
    <asp:TextBox ID="Password" runat="server" Font-Bold="True" Font-Size="12pt" 
        style="top: 50px; left: 245px; position: absolute; height: 22px; width: 137px" 
        TextMode="Password"></asp:TextBox>
    <asp:TextBox ID="RePassword" runat="server" Font-Bold="True" Font-Size="12pt" 
        style="top: 91px; left: 245px; position: absolute; height: 22px; width: 140px" 
        TextMode="Password"></asp:TextBox>
    <asp:TextBox ID="Email" runat="server" Font-Bold="True" Font-Size="12pt" 
        style="top: 130px; left: 244px; position: absolute; height: 22px; width: 147px"></asp:TextBox>
    <asp:Label ID="Label3" runat="server" Font-Bold="True" Font-Size="12pt" 
        style="position:absolute; top: 86px; left: 71px;" Text="Password(Retype):"></asp:Label>
    <asp:TextBox ID="Age" runat="server" Font-Bold="True" Font-Size="12pt" 
        style="top: 167px; left: 245px; position: absolute; height: 24px; width: 142px"></asp:TextBox>
    <asp:Button ID="Button1" runat="server" Font-Bold="True" Font-Size="12pt" 
        style="top: 201px; left: 267px; position: absolute; height: 26px; width: 75px" 
        Text="Submit" />
    <asp:CompareValidator ID="CompareValidator1" runat="server" 
        ControlToValidate="RePassword" ErrorMessage="Does not match" 
        style="position:absolute; top: 90px; left: 407px;">*</asp:CompareValidator>
    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
        ControlToValidate="Email" ErrorMessage="Missing @ or . symbol" 
        style="position:absolute; top: 129px; left: 407px; bottom: 465px;" 
        ValidationExpression="\S+@\S+\.\S+">*</asp:RegularExpressionValidator>
    <div>
    
    </div>
    </form>
</body>
</html>
