<%@ 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">
        #form1
        {
            height: 221px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <asp:Label ID="Label1" runat="server" 
            style="position :absolute; top: 18px; left: 74px;" Text="User Name:" 
            Font-Bold="True" Font-Italic="False" Font-Size="12pt"></asp:Label>
    
    </div>
    <asp:Label ID="Label2" runat="server" 
        style="position:absolute; top: 49px; left: 73px;" Text="Password:" 
        Font-Bold="True" Font-Size="12pt"></asp:Label>
    <p>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" 
            style="position:absolute; top: 16px; left: 406px;" runat="server" 
            ErrorMessage="Enter user name" ControlToValidate="Username"></asp:RequiredFieldValidator>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" 
            style="position:absolute; top: 52px; left: 409px;" runat="server" 
            ErrorMessage="Enter password" ControlToValidate="Password"></asp:RequiredFieldValidator>
    </p>
    <p>
        <asp:Label ID="Label4" runat="server" 
            style="position:absolute; top: 121px; left: 76px;" Text="E-mail:" 
            Font-Bold="True" Font-Size="12pt"></asp:Label>
        <asp:Label ID="Label5" runat="server" 
            style="position:absolute; top: 157px; left: 74px; right: 781px;" Text="Age:" 
            Font-Bold="True" Font-Size="12pt"></asp:Label>
        <asp:RangeValidator ID="RangeValidator1" 
            style="position:absolute; top: 167px; left: 408px;" runat="server" 
            ErrorMessage="Out of range" ControlToValidate="Age" 
            MaximumValue="&quot;120&quot;" MinimumValue="&quot;0&quot;"></asp:RangeValidator>
    </p>
    <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" 
            style="position:absolute; top: 86px; left: 71px;" 
        Text="Password(Retype):" Font-Bold="True" Font-Size="12pt"></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" 
        style="position:absolute; top: 90px; left: 407px;" runat="server" 
        ErrorMessage="Does not match" ControlToValidate="RePassword"></asp:CompareValidator>
    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" 
        style="position:absolute; top: 129px; left: 407px; bottom: 465px;" runat="server" 
        ErrorMessage="Missing @ or . symbol" ControlToValidate="Email" 
        ValidationExpression="\S+@\S+\.\S+"></asp:RegularExpressionValidator>
    </form>
</body>
</html>
