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

<%@ 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="request">
        <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" 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>Agent Registration</strong>
                </td>
            </tr>
            <tr>
                <td style="text-align: right">
                </td>
                <td >
                    Select Distributor<b>*</b>
                </td>
                <td >
                    :
                </td>
                <td >
                    <asp:DropDownList ID="ddl_Distributor" runat="server" Style="width: 237px;" ValidationGroup="test"
                        AppendDataBoundItems="true">
                        <asp:ListItem>Select</asp:ListItem>
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="rfv_Distributor" runat="server" ErrorMessage="Please Select Distributor"
                        InitialValue="Select User Name" ValidationGroup="test" ControlToValidate="ddl_Distributor"
                        Display="None"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    Company/Firm Name<b>*</b>
                </td>
                <td>
                    :
                </td>
                <td>
                    <asp:TextBox ID="txt_companyfirmname" runat="server" class="style" MaxLength="50" Width="230"
                        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" WatermarkText="Enter First Name"
                        TargetControlID="txt_Auth_Pers_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="112" 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>
                    E-Mail ID<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" Style="width: 232px;" class="style"
                        ValidationGroup="test"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfv_txt_Office_Address" runat="server" ErrorMessage="Please Enter Office Address"
                        Display="None" ControlToValidate="txt_Office_Address" ValidationGroup="test"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    Contry &amp; State <b>*</b>
                </td>
                <td>
                    <strong>:</strong>
                </td>
                <td>
                <asp:Label ID="lblcountry" runat="server" Text="India" Width="40px"></asp:Label>
                    <asp:DropDownList ID="ddl_State_OA" runat="server" Style="width: 195px;" 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: 116px" 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>                      
                        
                        
                    <asp:TextBox ID="txt_City_OA" runat="server" Style="width: 113px" ValidationGroup="test"
                        onkeypress="return isAlpha(event)"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Please Enter City"
                        Display="None" ControlToValidate="txt_City_OA" ValidationGroup="test"></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: 232px;" 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>
                    Board<b>*</b>
                </td>
                <td>
                    :
                </td>
                <td>
                     <asp:DropDownList ID="ddlBoard" runat="server" Style="width: 116px" ValidationGroup="test">
                        <asp:ListItem>SBPDCL</asp:ListItem>
                         <asp:ListItem>NBPDCL</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>  
            <tr>
                <td>
                </td>
                <td>
                    Device Id<b>*</b>
                </td>
                <td>
                    :
                </td>
                <td>
                     <asp:TextBox ID="txtDeviceId" runat="server" class="style"></asp:TextBox>
                </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>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
</asp:Content>
