<%@ Page Language="C#" MasterPageFile="~/Mlog.master" AutoEventWireup="true" CodeFile="frmRegister.aspx.cs" Inherits="frmRegister" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
 <table style="width: 553px; height: 468px" >
        <tr>
            <td>
                <asp:Label ID="Label1" runat="server" Text="REGISTRATION" Font-Bold="True" Font-Size="1em" Font-Underline="True"></asp:Label>
            
            </td>
            </tr>
           
        <tr>
            <td>
                <asp:Label ID="Label3" runat="server" Text="Username" Font-Italic="True"></asp:Label>
            </td>
            <td style="width: 292px">
                <asp:TextBox ID="txtuname" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtuname"
                    ErrorMessage="Username must needed" ForeColor="Blue" Style="z-index: 100; left: 380px;
                    position: absolute; top: 28px" Width="211px"></asp:RequiredFieldValidator>
            </td>
            <td>
                <asp:Label ID="Label13" runat="server" Text="Please choose another Username" Width="184px"></asp:Label>
            </td>
        </tr>
        
    <tr>
            <td>
                <asp:Label ID="Label4" runat="server" Text="Firstname" Font-Italic="True"></asp:Label>
            </td>
            <td style="width: 292px">
                <asp:TextBox ID="txtfname" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtfname"
                    ErrorMessage="Enter firstname" Style="z-index: 100; left:380px; position: absolute;
                    top: 55px" Width="163px"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="height: 27px">
                <asp:Label ID="Label5" runat="server" Text="Lastname" Font-Italic="True"></asp:Label>
            </td>
            <td style="width: 292px; height: 27px;">
                <asp:TextBox ID="txtlname" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style="height: 53px">
                <asp:Label ID="Label6" runat="server" Text="Gender" Font-Italic="True"></asp:Label>
            </td>
            <td style="width: 292px; height: 53px;">
                <asp:RadioButtonList ID="gender" runat="server" RepeatDirection="Horizontal" Font-Italic="True">
                    <asp:ListItem>male</asp:ListItem>
                    <asp:ListItem>female</asp:ListItem>
                </asp:RadioButtonList>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="gender"
                    ErrorMessage="Select gender" Style="z-index: 100; left: 380px; position: absolute;
                    top: 130px" Width="138px"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="height: 29px">
                <asp:Label ID="Label131" runat="server" Text="Address" Font-Italic="True"></asp:Label>
            </td>
            <td style="width: 292px; height: 29px;">
                <asp:TextBox ID="txtaddress" runat="server" TextMode="MultiLine"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtaddress"
                    ErrorMessage="Enter your address" Style="z-index: 100; left: 380px; position: absolute;
                    top: 175px" Width="203px"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label7" runat="server" Text="Email" Font-Italic="True"></asp:Label>
            </td>
            <td style="width: 292px">
                <asp:TextBox ID="txtemail" runat="server"></asp:TextBox>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtemail"
                    ErrorMessage="Incorrect Email" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td style="height: 26px">
                <asp:Label ID="Label8" runat="server" Text="Password" Font-Italic="True"></asp:Label>
            </td>
            <td style="width: 292px; height: 26px;">
                <asp:TextBox ID="txtpword" runat="server" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtpword"
                    ErrorMessage="Enter password" Style="z-index: 100; left: 380px; position: absolute;
                    top: 255px" Width="160px"></asp:RequiredFieldValidator>
            </td>
            </tr>
            <tr>
            <td>
                <asp:Label ID="Label2" runat="server" Text="Retype Password" Font-Italic="True"></asp:Label>
            </td>
            <td style="width: 292px">
                <asp:TextBox ID="txtrpword" runat="server" TextMode="Password"></asp:TextBox>
                <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtpword"
                    ControlToValidate="txtrpword" ErrorMessage="incorrect"></asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label9" runat="server" Text="Date of birth" Font-Italic="True"></asp:Label>
            </td>
            <td style="width: 292px">
                <asp:DropDownList ID="combodate" runat="server">
                    
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtcountry"
                    ErrorMessage="Enter your country" Style="z-index: 103; left: 380px; position: absolute;
                    top: 335px" Width="199px"></asp:RequiredFieldValidator>
                <asp:DropDownList ID="combomonth" runat="server" style="position: relative; z-index: 101;">
                    <asp:ListItem>JAN</asp:ListItem>
                    <asp:ListItem>FEB</asp:ListItem>
                    <asp:ListItem>MAR</asp:ListItem>
                    <asp:ListItem>APR</asp:ListItem>
                    <asp:ListItem>MAY</asp:ListItem>
                    <asp:ListItem>JUN</asp:ListItem>
                    <asp:ListItem>JUL</asp:ListItem>
                    <asp:ListItem>AUG</asp:ListItem>
                    <asp:ListItem>SEP</asp:ListItem>
                    <asp:ListItem>OCT</asp:ListItem>
                    <asp:ListItem>NOV</asp:ListItem>
                    <asp:ListItem>DEC</asp:ListItem>
                </asp:DropDownList>
                <asp:DropDownList ID="comboyear" runat="server" style="position: relative; z-index: 102;" >
                </asp:DropDownList></td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
       <tr>
            <td>
                <asp:Label ID="Label10" runat="server" Text="Country" Font-Italic="True"></asp:Label>
            </td>
            <td style="width: 292px">
                <asp:TextBox ID="txtcountry" runat="server"></asp:TextBox>
            </td>
        </tr>
         <tr>
            <td>
                <asp:Label ID="Label11" runat="server" Text="Zipcode" Font-Italic="True"></asp:Label>
            </td>
            <td style="width: 292px">
                <asp:TextBox ID="txtzcode" runat="server"></asp:TextBox>&nbsp;
                <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="txtzcode"
                    ErrorMessage="Invalid" MaximumValue="999999" MinimumValue="100000" SetFocusOnError="True"
                    Style="z-index: 100; left: 392px; position: absolute; top: 495px"></asp:RangeValidator>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td style="width: 292px">
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                <asp:Button ID="cmdsubmit" runat="server" Text="Submit" OnClick="cmdsubmit_Click" />
            </td>
            <td style="width: 292px">
                <asp:Button ID="cmdreset" runat="server" Text="Reset" OnClick="cmdreset_Click"  /><asp:LinkButton
                    ID="LinkButton1" runat="server" OnClick="LinkButton1_Click">Back</asp:LinkButton>
            </td>
        </tr>
        <tr>
       <td>
       <asp:Label ID="lblmess" runat="server" Text=""></asp:Label>
       </td>
       </tr>
    </table>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtzcode"
        ErrorMessage="Enter your pincode" Style="z-index: 100; left: 380px; position: absolute;
        top: 365px" Width="245px"></asp:RequiredFieldValidator>
</asp:Content>

