<%@ Page Language="C#" MasterPageFile="~/masterpage/MasterPage.master" AutoEventWireup="true" CodeFile="UserProfile.aspx.cs" 
Inherits="UserProfile" Title="eGen Services" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<form>
    <div id="middle">
    
    <script src="../javascript/scriptvalidation.js" type="text/javascript"></script>
    
        <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
            <tr>
                <td colspan="4" class="hdr">
                    <a href="Profile.aspx" class="active">User Profile</a><span style="padding-right: 30px;">&nbsp;</span>
                    <span style="padding-left: 50px;">&nbsp;</span>
                </td>
            </tr>
            <tr>
                <td style="height: 30px; text-align:center ;" colspan="4" >
                </td>
            </tr>
            <tr>
               <td colspan="4">
               <table width="100%">
                 <tr>
                    <td width="23%"><asp:Label ID="lblSelect_UserType" runat="server" Text="Select User Type"></asp:Label></td>
                    <td width="20%">
                        <asp:DropDownList ID="DDL_UserType" runat="server" Width="90px" 
                            AutoPostBack="True" 
                            onselectedindexchanged="DDL_UserType_SelectedIndexChanged">
                        <asp:ListItem>Select</asp:ListItem>
                        <asp:ListItem>MDS</asp:ListItem>
                        <asp:ListItem>Distributor</asp:ListItem>
                        <asp:ListItem>Agent</asp:ListItem>                        
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" InitialValue="Select" ControlToValidate="DDL_UserType"
                        ErrorMessage="Please Select Type" Display="None">
                    </asp:RequiredFieldValidator>
                    <cc1:ValidatorCalloutExtender ID="ValidatorCalloutExtender2" TargetControlID="RequiredFieldValidator1" runat="server">
                    </cc1:ValidatorCalloutExtender>
                        
                    </td>
                    <td width="3%"></td>
                    <td width="14%"><asp:Label ID="lbl_id" runat="server" Text="Select ID"></asp:Label></td>
                    <td width="18%"><asp:DropDownList ID="ddl_partner_id" runat="server" Width="90px">
                                    <asp:ListItem>Select User Id</asp:ListItem>
                                    </asp:DropDownList>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" InitialValue="Select User Id" ControlToValidate="ddl_partner_id"
                                      ErrorMessage="Please Select ID" Display="None">
                    </asp:RequiredFieldValidator>
                    <cc1:ValidatorCalloutExtender ID="ValidatorCalloutExtender3" TargetControlID="RequiredFieldValidator2" runat="server">
                    </cc1:ValidatorCalloutExtender>
                    </td>
                    <td width="23%" style="text-align:center"><asp:Button ID="btnSubmit" runat="server" 
                            Text="Submit"  class="button"  OnClick="btnSubmit_Click"/></td>
                  </tr>
               </table>
               </td> 
            </tr>               
            <tr>
                <td style="height: 30px; text-align:center ;" colspan="4" ><asp:Label ID="lblsucess" runat="server"></asp:Label>
                </td>
            </tr>
            <div id="divProfile" runat="server">
            <tr>
                <td colspan="4" style="text-align: center">
                    <strong>Personal Detail</strong>
                </td>
            </tr>
            <tr>
                <td width="12%">
                </td>
                <td width="33%">
                    User ID
                </td>
                <td width="3%">
                    <strong>:</strong>
                </td>
                <td width="52%">
                    <asp:Label ID="lbl_userid" runat="server"></asp:Label>
                </td>
            </tr>
            
            <tr>
                <td width="12%">
                </td>
                <td width="33%">
                    Company Name
                </td>
                <td width="3%">
                    <strong>:</strong>
                </td>
                <td width="52%">
                    <asp:Label ID="lblCorporateName" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    Authorised Person Name
                </td>
                <td>: </td>
                <td>
                    <asp:Label ID="lbl_FirstName" runat="server"></asp:Label>
                    <asp:Label ID="lbl_LastName" runat="server"></asp:Label>                   
                </td>
            </tr>
            
            <tr>
                <td colspan="4" style="text-align: center">                    
                   <strong>Office Address</strong>     
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    Address
                </td>
                <td>
                    <strong>:</strong>
                </td>
                <td>
                    <asp:Label ID="lbl_Address" runat="server"></asp:Label>
                    <%--<asp:TextBox ID="txtAddress1" TextMode="MultiLine" runat="server" Width="180px" Height="30"></asp:TextBox>--%>
                </td>
            </tr>
            
            <tr>
                <td>
                </td>
                <td>
                    State
                </td>
                <td>
                    <strong>:</strong>
                </td>
                <td>
                    <asp:Label ID="lbl_State" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    District
                </td>
                <td>
                    <strong>:</strong>
                </td>
                <td>
                    <asp:Label ID="lbl_District" runat="server"></asp:Label>
                </td>
            </tr>            
            <tr>
                <td colspan="4" style="text-align: center">
                    <strong>
                        Primary Details</strong>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    Pan Number
                </td>
                <td>
                    <strong>:</strong>
                </td>
                <td>
                    <asp:Label ID="lbl_PanNumber" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    E-Mail ID
                </td>
                <td>
                    <strong>:</strong>
                </td>
                <td>
                    <asp:Label ID="lbl_EMailID" runat="server"></asp:Label>
                    <asp:TextBox ID="txtEMailID" runat="server" OnClientClick="return reset1()"></asp:TextBox>
                    
                    <asp:RequiredFieldValidator ID="rfvEmailID" runat="server" ControlToValidate="txtEMailID"
                        ErrorMessage="Please Enter EmailID" Display="None">
                    </asp:RequiredFieldValidator>
                    
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorEmailid" 
                        runat="server" ErrorMessage="Please enter valid EmailID" Display="None" 
                    ControlToValidate="txtEMailID" 
                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                    
                    <cc1:ValidatorCalloutExtender ID="ValidatorCalloutExtender16" TargetControlID="rfvEmailID" runat="server">
                    </cc1:ValidatorCalloutExtender>
                    
                    <cc1:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" TargetControlID="RegularExpressionValidatorEmailid" runat="server">
                    </cc1:ValidatorCalloutExtender>
                </td>
            </tr>
            
            <tr>
                <td>
                </td>
                <td>
                    Authorize Mobile No.
                </td>
                <td>
                    <strong>:</strong>
                </td>
                <td>
                    <asp:Label ID="lbl_Aut_Mob_No" runat="server"></asp:Label>
                    <asp:TextBox ID="txt_Aut_Mob_No" runat="server" MaxLength="10" onkeypress="return digitonly(this,event)"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvMobileNumber" runat="server" ControlToValidate="txt_Aut_Mob_No"
                        ErrorMessage="Please Enter MobileNumber" Display="None">
                    </asp:RequiredFieldValidator>
                    <cc1:ValidatorCalloutExtender ID="ValidatorCalloutExtender7" TargetControlID="rfvMobileNumber"
                        runat="server">
                    </cc1:ValidatorCalloutExtender>
                    <%--<asp:Label ID="lblAutMobNum" runat="server"></asp:Label>--%>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                   Web Password
                </td>
                <td>
                    <strong>:</strong>
                </td>
                <td>                    
                    <asp:Label ID="lblPassword" runat="server"></asp:Label>
                </td>
            </tr>
            
            <tr>
                <td colspan="4" style="text-align: center; padding: 20px 0 0 0">
                    <asp:Button ID="btnEdit" runat="server" Text="Edit Profile" class="button" onclick="btnEdit_Click"/>
                    <asp:Button ID="btnSave" runat="server" Text="Save" class="button" 
                        onclick="btnSave_Click"/>
                </td>
            </tr>
            </div>
            <tr>
                <td colspan="4" style="height: 30px"><asp:ScriptManager ID="ScriptManager" runat="server">
                    </asp:ScriptManager>
                </td>
            </tr>
        </table>
    </div>
    </form>
    <div id="right" style="background: none">
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td class="cdr">
                    <strong>Edit Profile instruction</strong>
                </td>
            </tr>
            <tr>
                <td style="padding: 10px 0 30px 5px; font-size: 15px">
                    Comming Soon
                </td>
            </tr>
        </table>
    </div>
</asp:Content>

