<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage/AdminMasterPage.master"
    AutoEventWireup="true" CodeFile="AddMDS.aspx.cs" Inherits="Admin_AddMDS" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">

    <script src="script/ddlevelsmenu.js" type="text/javascript"></script>

    <script src="script/func.js" type="text/javascript"></script>
    
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="contentmain">
        <div id="content">
            <div id="detailform">
        <table width="100%" border="0" cellspacing="0" cellpadding="0" id="IdtblAgent" runat="server">
            
            <tr>
                <td width="27%">
                    &nbsp;
                </td>
                <td width="14%">
                    Select User for Registration
                </td>
                <td width="1%">
                    <strong>:</strong>
                </td>
                <td width="58%">
                    <asp:DropDownList ID="DropDownList3" runat="server" Width="225px" OnSelectedIndexChanged="DropDownList3_SelectedIndexChanged"
                        AutoPostBack="true">
                        <asp:ListItem Value="0">Select Type</asp:ListItem>
                        <asp:ListItem Value="1">White Label</asp:ListItem>
                        <asp:ListItem Value="1">Master Distributor</asp:ListItem>
                        <asp:ListItem Value="2">Distributor</asp:ListItem>
                        <asp:ListItem Value="3">Agent</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>                    
            
            <tr>
                <td colspan="4" align="center" style="text-align: center; height: 2px">
                    <asp:Label ID="lblsucess" runat="server"></asp:Label>
                </td>
            </tr>
            
            <tr>
                <td colspan="4" style="text-align: center; font-size: 18px; padding: 15px 0 15px 0;">
                    <strong>Master Distributor Registration</strong>
                </td>
            </tr>
            
            <tr>
                <td>
                </td>
                <td>
                    Company/Firm Name<b>*</b>
                </td>
                <td><strong>:</strong></td>
                <td><asp:TextBox ID="txt_companyfirmname" runat="server" Width="231px" MaxLength="50"
                        ValidationGroup="test"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfv_companyfirmname" runat="server" ValidationGroup="test"
                        ErrorMessage="Please Enter Company/Firm Name" ControlToValidate="txt_companyfirmname"
                        Display="None"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td style="text-align: right">
                </td>
                <td >
                    Authorised Person Name<b>*</b>
                </td>
                <td >
                    :
                </td>
                <td >
                    <asp:DropDownList ID="ddl_Sir_Name" runat="server" Style="width: 60px;" ValidationGroup="test">
                        <asp:ListItem>Select</asp:ListItem>
                        <asp:ListItem>Mr.</asp:ListItem>
                        <asp:ListItem>Ms.</asp:ListItem>
                        <asp:ListItem>Mrs.</asp:ListItem>
                    </asp:DropDownList>
                    <asp:TextBox ID="txt_Auth_Pers_Name" runat="server" Style="width: 168px" ValidationGroup="test"
                        onkeypress="return isAlpha(event)"></asp:TextBox>
                    <cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender3" runat="server" TargetControlID="txt_Auth_Pers_Name"
                        WatermarkText="Enter First Name">
                    </cc1:TextBoxWatermarkExtender>
                    <asp:RequiredFieldValidator ID="rfv_ddl_Sir_Name" runat="server" ErrorMessage="Please Select Mr./ Ms./Mrs"
                        InitialValue="Select" ValidationGroup="test" ControlToValidate="ddl_Sir_Name"
                        Display="None"></asp:RequiredFieldValidator>
                    <asp:RequiredFieldValidator ID="rfv_txt_Auth_Pers_Name" runat="server" ErrorMessage="Please Enter First Name"
                        ValidationGroup="test" ControlToValidate="txt_Auth_Pers_Name" Display="None"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                </td>
                <td>
                    :
                </td>
                <td>
                    <asp:TextBox ID="txt_Middlename" runat="server" ValidationGroup="test" onkeypress="return isAlpha(event)"
                        Width="111" MaxLength="12"></asp:TextBox>
                    <cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server" WatermarkText="Enter Mid Name"
                        TargetControlID="txt_Middlename">
                    </cc1:TextBoxWatermarkExtender>
                    <asp:TextBox ID="txt_Lastname" runat="server" ValidationGroup="test" onkeypress="return isAlpha(event)"
                        Width="111" MaxLength="12"></asp:TextBox>
                    <cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender2" runat="server" WatermarkText="Enter Last Name"
                        TargetControlID="txt_Lastname">
                    </cc1:TextBoxWatermarkExtender>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    Authorised Person E-MailID<b>*</b>
                </td>
                <td>
                    :
                </td>
                <td>
                    <asp:TextBox ID="txt_EMail_ID" runat="server" class="style" ValidationGroup="test"
                        Style="width: 232px;"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfv_txt_EMail_ID" runat="server" ErrorMessage="Please Enter E-Mail ID."
                        Display="None" ControlToValidate="txt_EMail_ID" ValidationGroup="test"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="reguexp_EmailID" runat="server" ErrorMessage="Please Enter Valid Email Id"
                        ControlToValidate="txt_EMail_ID" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    Authorized Mobile No.<b>*</b>
                </td>
                <td>
                    :
                </td>
                <td>
                    <asp:TextBox ID="txt_Authorized_Mobile_No" runat="server" class="style" ValidationGroup="test"
                        Style="width: 232px;" onkeypress="return digitonly(this,event)" MaxLength="10"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfv_txt_Authorized_Mobile_No" runat="server" ErrorMessage="Please Enter Authorized Mobile No."
                        Display="None" ControlToValidate="txt_Authorized_Mobile_No" ValidationGroup="test"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    PAN/ S. Tax/ TIN Number<b>*</b>
                </td>
                <td>
                    :
                </td>
                <td>
                    <asp:TextBox ID="txt_Pan_Tin_Number" runat="server" class="style" ValidationGroup="test"
                        Style="width: 232px;" MaxLength="10" onkeyup="ConvertToCaps(this)"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfv_txt_Pan_Tin_Number" runat="server" ErrorMessage="Please Enter PAN/ S. Tax/ TIN Number"
                        Display="None" ControlToValidate="txt_Pan_Tin_Number" ValidationGroup="test"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    Office Address<b>*</b>
                </td>
                <td>
                    :
                </td>
                <td>
                    <asp:TextBox ID="txt_Office_Address" runat="server" class="style" TextMode="MultiLine"
                        ValidationGroup="test" Style="width: 232px;"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Please Enter Office Address"
                        Display="None" ControlToValidate="txt_Office_Address" ValidationGroup="test"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    Country & State<b>*</b>
                </td>
                <td>
                    :
                </td>
                <td>
                    <asp:Label ID="lblcountry" runat="server" Text="India" Width="40px"></asp:Label>
                    <asp:DropDownList ID="ddl_State_OA" runat="server" Style="width: 193px;" AutoPostBack="true"
                        OnSelectedIndexChanged="ddl_State_OA_SelectedIndexChanged">
                        <asp:ListItem>Select</asp:ListItem>
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="rfv_ddl_State_OA" runat="server" ErrorMessage="Please Select State"
                        Display="None" ControlToValidate="ddl_State_OA" ValidationGroup="test" InitialValue="Select"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    District &amp; City <b>*</b>
                </td>
                <td>
                    <strong>:</strong>
                </td>
                <td>
                    <asp:DropDownList ID="ddl_Distric_OA" runat="server" Style="width: 110px">
                        <asp:ListItem>Select</asp:ListItem>
                        <asp:ListItem>B</asp:ListItem>
                    </asp:DropDownList>
                    <asp:TextBox ID="txt_City_OA" runat="server" Width="119px" ValidationGroup="test"
                        onkeypress="return isAlpha(event)"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Please Enter City"
                        Display="None" ControlToValidate="txt_City_OA" ValidationGroup="test"></asp:RequiredFieldValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ErrorMessage="Please Select Distric"
                        ControlToValidate="ddl_Distric_OA" InitialValue="Select"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    Pin Code<b>*</b>
                </td>
                <td>
                    :
                </td>
                <td>
                    <asp:TextBox ID="txt_Pin_Code_OA" runat="server" class="style" ValidationGroup="test"
                        Style="width: 233px;" onkeypress="return digitonly(this,event)" MaxLength="6"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfv_txt_Pin_Code_OA" runat="server" ErrorMessage="Please Enter Pin Code"
                        Display="None" ControlToValidate="txt_Pin_Code_OA" ValidationGroup="test"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <%-- <tr>
                <td>
                </td>
                <td>
                    Date of Birth<b>*</b>
                </td>
                <td>
                    :
                </td>
                <td>
                    <asp:TextBox ID="txt_Date_Of_Birth" runat="server" Style="width: 232px;" ValidationGroup="test"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfv_txt_Date_Of_Birth" runat="server" ValidationGroup="test"
                        ErrorMessage="Please Enter Date of Birth" ControlToValidate="txt_Date_Of_Birth"
                        Display="None"></asp:RequiredFieldValidator>
                    <cc1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txt_Date_Of_Birth"
                        PopupPosition="Right">
                    </cc1:CalendarExtender>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    Gender<b>*</b>
                </td>
                <td>
                    :
                </td>
                <td>
                    <asp:DropDownList ID="ddl_Gender_MF" runat="server" Style="width: 117px;" ValidationGroup="test">
                        <asp:ListItem>Select</asp:ListItem>
                        <asp:ListItem>Male</asp:ListItem>
                        <asp:ListItem>Female</asp:ListItem>
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="rfv_ddl_Gender_MF" runat="server" ErrorMessage="Please Enter Gender"
                        InitialValue="Select" Display="None" ControlToValidate="ddl_Gender_MF" ValidationGroup="test"></asp:RequiredFieldValidator>
                    <asp:DropDownList ID="ddl_Gender_MU" runat="server" Style="width: 117px;" ValidationGroup="test">
                        <asp:ListItem>Marital Status</asp:ListItem>
                        <asp:ListItem>Married</asp:ListItem>
                        <asp:ListItem>UnMarried</asp:ListItem>
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="rfv_ddl_Gender_MU" runat="server" ErrorMessage="Please Enter Marital Status"
                        InitialValue="Marital Status" Display="None" ControlToValidate="ddl_Gender_MU"
                        ValidationGroup="test"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td colspan="4" style="text-align: center; font-weight: bold">
                    Office Address
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    Address1<b>*</b>
                </td>
                <td>
                    :
                </td>
                <td>
                    <asp:TextBox ID="txt_Office_Address1" runat="server" class="style" ValidationGroup="test"
                        Style="width: 232px;"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfv_txt_Office_Address1" runat="server" ErrorMessage="Please Enter Office Address1"
                        Display="None" ControlToValidate="txt_Office_Address1" ValidationGroup="test"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    Address2
                </td>
                <td>
                    :
                </td>
                <td>
                    <asp:TextBox ID="txt_Office_Address2" runat="server" class="style" Style="width: 232px;"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    District <b>*</b>
                </td>
                <td>
                    :
                </td>
                <td>
                    <asp:DropDownList ID="ddl_Distric_OA" runat="server" Width="237px" ValidationGroup="test">
                        <asp:ListItem>Select</asp:ListItem>
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="rfv_ddl_Distric_OA" runat="server" ErrorMessage="Please Select Distric"
                        Display="None" ControlToValidate="ddl_State_OA" ValidationGroup="test" InitialValue="Select"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    City<b>*</b>
                </td>
                <td>
                    :
                </td>
                <td>
                    <asp:TextBox ID="txt_City_OA" runat="server" Width="231px" ValidationGroup="test"
                        onkeypress="return isAlpha(event)"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfv_txt_City_OA" runat="server" ErrorMessage="Please Enter City"
                        Display="None" ControlToValidate="txt_City_OA" ValidationGroup="test"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    Nearby Land Mark
                </td>
                <td>
                    :
                </td>
                <td>
                    <asp:TextBox ID="txt_Nearby_Land_Mark_OA" runat="server" class="style" onkeypress="return isAlpha(event)"
                        Style="width: 232px;"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    Phone & Fax
                </td>
                <td>
                    :
                </td>
                <td>
                    <asp:TextBox ID="txt_Phone_Fax_OA1" runat="server" Style="width: 40px;" onkeypress="return digitonly(this,event)"
                        MaxLength="5"></asp:TextBox>
                    <asp:TextBox ID="txt_Phone_Fax_OA2" runat="server" Style="width: 87px;" onkeypress="return digitonly(this,event)"
                        MaxLength="8"></asp:TextBox>
                    <asp:TextBox ID="txt_Phone_Fax_OA3" runat="server" Style="width: 87px;" onkeypress="return digitonly(this,event)"
                        MaxLength="8"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td colspan="4" style="text-align: center; font-weight: bold">
                    Primary Details
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    &nbsp;Alternate E-Mail ID
                </td>
                <td>
                    &nbsp;:
                </td>
                <td>
                    <asp:TextBox ID="txt_Alternate_Email_ID" runat="server" class="style" ValidationGroup="test"
                        Style="width: 232px;"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="reguexp_Alter_Email_id" runat="server" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                        ErrorMessage="Please Enter Valid Email ID" ControlToValidate="txt_Alternate_Email_ID"></asp:RegularExpressionValidator>
                </td>
            </tr>--%>
            <tr>
                <td colspan="4" style="text-align: center; padding: 20px 0 0 0">
                    <asp:Button ID="Button1" ValidationGroup="test" runat="server" Text="Submit" class="button"
                        OnClick="Button1_Click" />
                    <asp:ValidationSummary ID="ValidationSummary1" runat="server" ValidationGroup="test"
                        ShowMessageBox="true" ShowSummary="false" />
                </td>
            </tr>
            <tr>
                <td colspan="4" style="height: 30px">
                </td>
            </tr>
        </table>
    </div></div></div>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
</asp:Content>
