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

<%@ 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">

<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr><td colspan="4" style="text-align:center"><asp:Label ID="lbl_error" runat="server"></asp:Label></td></tr>
  <tr>
    <td width="28%">&nbsp;</td>
    <td width="15%">Select User Type</td>
    <td width="1%"><strong>:</strong></td>
    <td width="56%"><asp:DropDownList ID="ddl_Usertype" runat="server" 
            AutoPostBack="True" onselectedindexchanged="ddl_Usertype_SelectedIndexChanged">
                    <asp:ListItem value="0">Select</asp:ListItem>
                    <asp:ListItem value="1">White Label</asp:ListItem> 
                    <asp:ListItem value="2">Master Distributor</asp:ListItem>                   
                    <asp:ListItem value="3">Distributor</asp:ListItem>
                    <asp:ListItem value="4">Agent</asp:ListItem>
                    </asp:DropDownList>    
    
	</td>
  </tr>
  <div id="divUserid" runat="server">
     <tr>
        <td width="28%">&nbsp;</td>
        <td width="15%">Select User Id</td>
        <td width="1%"><strong>:</strong></td>
        <td width="56%"><asp:DropDownList ID="ddl_selectUserId" runat="server" 
                AutoPostBack="True" onselectedindexchanged="ddl_selectUserId_SelectedIndexChanged" ></asp:DropDownList>    
        </td>
  </tr>
  </div>
  
  <div id="div_form" runat="server">
            <tr>
                <td colspan="4" style="text-align: center; font-size: 18px; padding: 15px 0 15px 0;">
                    <strong><asp:Label ID="lbl_usertype" runat="server"></asp:Label>&nbsp; Registration</strong>
                </td>
            </tr>
            
            <tr>
                <td>
                </td>
                <td>
                    Present Category<b>*</b>
                </td>
                <td>
                    :
                </td>
                <td>
                    <asp:Label ID="lbl_category" runat="server"></asp:Label>
                </td>
            </tr>
            
            <tr>
                <td>
                </td>
                <td>
                    Category<b>*</b>
                </td>
                <td>
                    :
                </td>
                <td>
                    <asp:DropDownList ID="ddl_Category" runat="server" Width="235px" >
                    <asp:ListItem>Select</asp:ListItem>
                    <asp:ListItem Value="2" >Gold</asp:ListItem>
                    <asp:ListItem Value="1">Platinum</asp:ListItem>
                    <asp:ListItem Value="3">Silver</asp:ListItem>
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="rfv_ddl_Category" runat="server" ValidationGroup="test"
                        ErrorMessage="Please Select Category" ControlToValidate="ddl_Category" InitialValue="Select"
                        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:TextBox ID="txt_Auth_Pers_Name" runat="server" Style="width: 230px" 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_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
                </td>
                <td>
                    :
                </td>
                <td>
                    <asp:TextBox ID="txtDeviceId" runat="server" class="style"></asp:TextBox>
                </td>
            </tr>  
      <tr>
          <td>
          </td>
          <td>
             Pine Device Id
          </td>
          <td>
              :
          </td>
          <td>
              <asp:TextBox ID="txtPineDeviceId" 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">
               <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
               </td>
            </tr>
  </div>
  
</table>

</asp:Content>

