<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/FiniqAppMasterPage.Master" CodeBehind="CustomerProfile.aspx.vb" Inherits="FinIQWebApp.CustomerProfile" title="Customer Profile" %>


<%@ Register src="../FinIQ_User_Controls/DateControl.ascx" tagname="DateControl" tagprefix="uc1" %>

<%@ Register src="../FinIQ_User_Controls/Find_Customer_Control/FinIQ_Find_Customer.ascx" tagname="FinIQ_Find_Customer" tagprefix="UC_CustomerControl" %>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"><asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server"></asp:ScriptManagerProxy> 
    
<asp:UpdatePanel ID="Updatepanel1" runat="server">
<ContentTemplate>
    <asp:Panel ID="pnlOuter" runat="server">
    <table class="Filter" cellpadding="0" cellspacing="0" border="0" >
            <tr>
                <td class="tblbl">
                    <asp:Label ID="lblErrorMessage" runat="server" CssClass="lblError"></asp:Label> 
                    <asp:regularexpressionvalidator id="regularexprforemaild" runat="server" CssClass="lblError" ErrorMessage="Please enter proper emailid"
											ControlToValidate="txtEmailID" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*|\s"></asp:regularexpressionvalidator>                                       
                </td>
            </tr>
            <tr>
                <td>
                    <table  cellpadding="0" cellspacing="0" border="0" >
                       <tr>
                            <td class="tblbl">
                                <table cellpadding="0" cellspacing="2" border="0">
                                    <tr>
                                        <td>                          
                                            <UC_CustomerControl:FinIQ_Find_Customer ID="FindCust1" runat="server" />
						                </td>
						                <td>                                     
						                    <input ID="btnRefresh"  runat="server" class="btn" name="btnRefresh" 
                                                tabindex="50" type="button" value="Refresh" title="Refresh" /></td>
						                <td>             
                                            <asp:Button ID="btnAdd" UseSubmitBehavior="False" runat="server" Text="Add" 
                                                CssClass="btn"  Width="60px" TabIndex="51" ToolTip="Add"></asp:Button>
                                        </td>
                                        <td>
                                            <asp:Button ID="btnEdit" UseSubmitBehavior="False" runat="server" Text="Edit" 
                                                CssClass="btn" Width="60px" TabIndex="52" ToolTip="Edit"></asp:Button>
                                        </td>
                                        <td>
                                            <asp:Button ID="btnSave" CausesValidation="True" runat="server" 
                                                Text="Save" CssClass="btn" TabIndex="53" 
                                                ToolTip="Save"></asp:Button>
                                        </td>
                                        <td>
                                            <asp:Button ID="btnApprove" UseSubmitBehavior="False" runat="server" 
                                                Text="Approve" CssClass="btn" TabIndex="54" ToolTip="Approve"></asp:Button>
                                            <asp:Button ID="btnSaveNApp" UseSubmitBehavior="False" runat="server" 
                                                CausesValidation="True" Text="Save & Approve" Visible="false" CssClass="btn" 
                                                TabIndex="54" ToolTip="Save &amp; Approve"></asp:Button>
                                        </td>
                                        <td>
                                            <asp:Button ID="btnReject" UseSubmitBehavior="False" runat="server" 
                                                Text="Reject" CssClass="btn" TabIndex="55" ToolTip="Reject"></asp:Button>
                                        </td>
                                        <td>
                                            <asp:Button ID="btnDeactivate" UseSubmitBehavior="False" runat="server" 
                                                Text="De-Activate" CssClass="btn" TabIndex="56" ToolTip="De-Activate"></asp:Button>
                                            <asp:Button ID="btnActivate" UseSubmitBehavior="False" runat="server" 
                                                Text="Activate" Visible="False" CssClass="btn" TabIndex="56" ToolTip="Activate"></asp:Button>
                                        </td>
                                        <td>
                                            <asp:Button ID="btnCancel" UseSubmitBehavior="False" runat="server" 
                                                Text="Cancel" Width="60px" CssClass="btn" TabIndex="57" ToolTip="Cancel"></asp:Button>                                                        
                                        </td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td style="height:5px">
                                            
                                        </td>
                                    </tr>
                               </table>
                                <table  cellpadding="0" cellspacing="0" border="0" width="100%">
                                    <tr>
                                        <td class="lbl">&nbsp;
                                        Mode:
                                        <asp:Label ID="lblLoginUserMode" runat="server" cssclass="lbl" ForeColor="Blue"></asp:Label> &nbsp;
                                        Status:
                                        <asp:Label ID="lblAccountStatus" runat="server" cssclass="lbl" ForeColor="Red"></asp:Label>  &nbsp;
                                        Input Source:
                                        <asp:Label ID="lblAccountInputSource" runat="server" cssclass="lbl" ForeColor="Blue"></asp:Label>
                                        <input type="hidden" id="hdnEducationalScore" name="hdnEducationalScore" runat="server" />
                                        <input type="hidden" id="hdnTimeHorizonScore" name="hdnTimeHorizonScore" runat="server" />
                                        <input type="hidden" id="hdnPI_Initial_YN" name="hdnPI_Initial_YN" runat="server" />
                                        <input type="hidden" id="hdnPI_Initial_Date" name="hdnPI_Initial_Date" runat="server" />
                                        <input type="hidden" id="hdnST_Initial_Date" name="hdnST_Initial_Date" runat="server" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="height:5px"> </td>
                                    </tr>
                             </table>

                            </td>
                            
                       </tr> 
                      </table>           
                    <table  cellpadding="0" cellspacing="0" border="0" >
                        <tr>
                            <td valign="top" class="border_black">
                                   <table  cellpadding="0" cellspacing="0" border="0" >                                   
                                        <tr>
                                            <td colspan="3" class="tblbl" style="height:10px;font-size:0px;border:none 0px none;line-height:0px"></td>
                                        </tr>
                                        <tr>
                                            <td class="height22 tblbl" style="width:5px;"><span class="mandatory">*</span></td>
						                    <td class="lbl">Customer ID No&nbsp;&nbsp;</td>
						                    <td class="tblbl">
						                        <asp:dropdownlist id="ddlId" runat="server" Width="220" AutoPostBack="True" 
                                                    CssClass="ddl" TabIndex="1"></asp:dropdownlist>
						                        <asp:textbox id="txtCusID" tabIndex="2" Width="100px" runat="server" CssClass="txt" 
                                                    MaxLength="50"></asp:textbox>
						                        
						                    </td>								           
					                    </tr>
					                    <tr>
					                        <td class="height22">&nbsp;</td>
						                    <td class="lbl">Customer Type</td>
						                    <td><asp:textbox id="txtCustType" tabIndex="3" runat="server" Enabled="False" 
                                                    CssClass="txt" Width="90px"></asp:textbox>
                                                <asp:label id="lblFormat1" cssclass="lbl" runat="server" style="text-align:right"></asp:label>
                                            </td>                                            
					                    </tr>					                    
					                    <tr>
					                        <td class="height22">&nbsp;</td>
					                        <td class="lbl">Country Of Issue&nbsp;</td>
						                    <td class="lbl">
						                        <asp:dropdownlist id="ddlCountryOfIssue" tabIndex="4" runat="server" 
                                                    Width="105px" CssClass="ddl"></asp:dropdownlist>
						                        <asp:linkbutton id="lnkCountryOfIssueMore"  runat="server" CssClass="link">More</asp:linkbutton>
						                    </td>
					                    </tr>
					                    <tr>
						                    <td class="height22"><span class="mandatory">*</span></td>
						                    <td class="lbl">OCIS No</td>
						                    <td><asp:textbox id="txtCIFNo" tabIndex="5" runat="server" CssClass="txt" 
                                                    MaxLength="30"></asp:textbox></td>
					                    </tr>
					                    <tr>
					                        <td class="height22"><span class="mandatory">*</span></td>
						                    <td class="lbl">Customer Name</td>
						                    <td>						                        
						                        <asp:textbox id="txtCustName" tabIndex="6" runat="server" Width="330px" 
                                                    CssClass="txt" MaxLength="100"></asp:textbox></td>
					                    </tr>
				                    </table>
				                    <table cellpadding="0" cellspacing="0" border="0" >
				                        <tr>
					                        <td colspan="5" class="tblbl" style="height:10px;font-size:0px;border:none 0px none;line-height:0px">&nbsp;</td>
					                    </tr>
					                    <tr>
					                        <td class="background_gray">&nbsp;</td>
					                        <td colspan="4" class="lblHeader background_gray">Address</td>
					                    </tr>
					                    <tr>
					                        <td colspan="5" class="tblbl" style="height:10px;font-size:0px;border:none 0px none;line-height:0px">&nbsp;</td>
					                    </tr>
					                    <tr>
					                        <td class="height22">&nbsp;</td>
					                        <td class="lbl">Line 1&nbsp;&nbsp;</td>
						                    <td><asp:textbox id="txtBlockNo" tabIndex="7" runat="server" CssClass="txt" 
                                                    Width="130px" MaxLength="50"></asp:textbox></td>
						                    <td>&nbsp;</td>					    
						                    <td>
						                        &nbsp;<asp:checkbox id="chkForeignAddress" CssClass="RadioBtn" 
                                                    runat="server" Text=" Foreign Address" Visible="False"></asp:checkbox>&nbsp;</td>
					                    </tr>
					                    <tr>
					                        <td class="height22">&nbsp;</td>
						                    <td class="lbl">Line 2</td>
						                    <td colspan="3">
                                                <asp:textbox id="txtStreetName1" tabIndex="8" runat="server" Width="330px" 
                                                    CssClass="txt" MaxLength="50"></asp:textbox>&nbsp;</td>
					                    </tr>
					                    <tr>
					                        <td class="height22">&nbsp;</td>
						                    <td class="lbl">Line 3</td>
						                    <td colspan="3">
                                                <asp:textbox id="txtstreetname2" tabIndex="9" runat="server" Width="330px" 
                                                    CssClass="txt" MaxLength="50"></asp:textbox>&nbsp;</td>
					                    </tr>
					                    <tr>
					                        <td class="height22">&nbsp;</td>
						                    <td class="lbl">City</td>
						                    <td><asp:textbox id="txtCity" tabIndex="11" runat="server" width="130px"
                                                    CssClass="txt" MaxLength="50"></asp:textbox></td>
                                            <td class="lbl">State</td>
						                    <td>						                        
                                                <asp:textbox id="txtState" runat="server" Enabled="False" CssClass="txt" 
                                                    TabIndex="12" width="130px" MaxLength="50"></asp:textbox>
                                            </td>
					                    </tr>   
					                    <tr>
					                        <td class="height22">&nbsp;</td>
						                    <td class="lbl">Zip/Postal Code</td>
						                    <td><asp:textbox id="txtPostalCode" tabIndex="13" runat="server" 
                                                    CssClass="txt" width="130px" MaxLength="10"></asp:textbox>
                                               
                                            </td>
                                            <td class="lbl">Country</td>
						                    <td class="lbl">
						                        <asp:dropdownlist id="ddlCountry" tabIndex="14" runat="server" Width="105px" 
                                                    CssClass="ddl"></asp:dropdownlist>
						                        <asp:linkbutton id="lnkCountryMore"  runat="server" CssClass="link" 
                                                    TabIndex="15">More</asp:linkbutton>&nbsp;</td>
					                    </tr>
					                    <tr>
					                        <td colspan="5" class="tblbl" style="height:10px;font-size:0px;border:none 0px none;line-height:0px">&nbsp;</td>
					                    </tr>
					                    <tr>
					                        <td class="background_gray">&nbsp;</td>
					                        <td colspan="4"  class="lblHeader background_gray">Contacts</td>
					                    </tr>    	
					                    <tr>
					                        <td colspan="5" class="tblbl" style="height:10px;font-size:0px;border:none 0px none;line-height:0px">&nbsp;</td>
					                    </tr>				                
					                    <tr>
					                        <td class="height22">&nbsp;</td>
						                    <td class="lbl">Home No</td>
						                    <td><asp:textbox id="txtHomeTel" tabIndex="16" runat="server" Width="130px" 
                                                    CssClass="txt" MaxLength="20"></asp:textbox></td>
						                    <td class="lbl">Mobile No&nbsp;</td>
						                    <td><asp:textbox id="txtHandPhone" tabIndex="18" runat="server" Width="130px" 
                                                    CssClass="txt" MaxLength="20"></asp:textbox></td>
					                    </tr>
					                    <tr>
					                        <td class="height22">&nbsp;</td>
						                    <td class="lbl">Business No&nbsp;</td>
						                    <td><asp:textbox id="txtOfficeTel" tabIndex="17" runat="server" Width="130px" 
                                                    CssClass="txt" MaxLength="20"></asp:textbox></td>
						                    <td class="lbl">Fax No</td>
						                    <td><asp:textbox id="txtFaxNo" tabIndex="19" runat="server" Width="130px" 
                                                    CssClass="txt" MaxLength="20"></asp:textbox></td>
					                    </tr>
					                    <tr>
					                         <td class="height22">
                                                    </td>
						                    <td class="lbl">Email Id</td>
						                    <td colspan="3">
                                                <asp:textbox id="txtEmailID" tabIndex="20" runat="server" 
                                                    Width="330px" CssClass="txt" MaxLength="80"></asp:textbox>
                                            </td>
					                    </tr>							                				
					                    
					               </table>
                                  <table cellpadding="0" width="100%" cellpadding="0" cellspacing="0" border="0" visible ="false"  >
                                        <tr>
                                            <td colspan="3" class="tblbl" style="height:10px;font-size:0px;border:none 0px none;line-height:0px"> &nbsp;</td>
                                            </tr>
                                            <tr>
                                                <td class="background_gray">&nbsp;</td>
                                                <td class="lblHeader background_gray">&nbsp;</td>
                                                <td class="background_gray">&nbsp;</td>
                                            </tr>
                                              
                                            <tr>
                                            <td >&nbsp;</td>
                                            <td class="height22 lbl"><span class="lbl">Created By -&nbsp;</span><asp:label id="lblCreatedBy" runat="server" CssClass="lbl" Visible = "false" ></asp:label>&nbsp;</td>
                                            <td><span class="lbl">Created At -&nbsp;</span><asp:label id="lblCreatedAt" runat="server" CssClass="lbl" Visible = "false" ></asp:label>&nbsp;</td>
                                        </tr>  
                                        <tr>
                                            <td >&nbsp;</td>
                                            <td class="height22 lbl"><span class="lbl" visible = "false" > Last Edited By -&nbsp; </span><asp:label id="lblEditedBy" runat="server" CssClass="lbl"></asp:label>&nbsp;</td>
                                            <td><span class="lbl">Last Edited At -&nbsp;</span><asp:label id="lblEditedAt" runat="server" CssClass="lbl"></asp:label>&nbsp;
                                                <asp:label id="lblVerifiedBy" runat="server" CssClass="lbl" Visible="False"></asp:label><asp:label id="lblVerifiedAt" runat="server" CssClass="lbl" Visible="False" ></asp:label>
                                            </td>
                                        </tr>                                        
                                       </table>
                            </td>
                            <td valign="top" class="border_black">
                                
                                <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                        	
                                        <tr>
                                            <td class="background_gray" style="width:5px;">&nbsp;</td>
					                        <td class="background_gray">&nbsp;</td>
					                        <td class="lblHeader background_gray">Individual</td>
					                        <td class="background_gray" style="width:5px;">&nbsp;</td>
					                        <td class="background_gray">&nbsp;</td>
					                        <td class="lblHeader background_gray">Non-Individual</td>
					                    </tr>
					                    <tr>
					                        <td colspan="6" class="tblbl" style="height:10px;font-size:0px;border:none 0px none;line-height:0px">&nbsp;</td>
					                    </tr>
                                        <tr>
                                            <td class="height22" style="width:5px;height:25px">&nbsp;</td>
						                    <td class="lbl"><asp:Label ID="lblNatMandatory" runat="server" CssClass="lbl mandatory" Visible="false" Text="*"></asp:Label>&nbsp;Nationality</td>
						                    <td class="lbl">
						                        <asp:checkbox id="chkResident" runat="server" CssClass="RadionBtn" Enabled="False"  Visible="False"
                                                    TabIndex="21"></asp:checkbox>
						                        <asp:dropdownlist id="ddlNationality" tabIndex="22" runat="server" AutoPostBack="True"
                                                    Width="120px" CssClass="ddl"></asp:dropdownlist>
						                        <asp:linkbutton id="lbNatMore" runat="server" CssClass="link" TabIndex="23">More</asp:linkbutton>
						                    </td>	
						                    <td style="width:5px;">&nbsp;</td>
						                    <td class="lbl">Company Type</td>
						                    <td><asp:dropdownlist id="ddlCompanyType" tabIndex="20" runat="server" 
                                                    Width="120px" CssClass="ddl"></asp:dropdownlist>&nbsp;</td>							           
					                    </tr>
					                    <tr>
					                        <td class="height22" style="width:5px;height:25px">&nbsp;</td>
						                    <td class="lbl"><asp:Label ID="lblResMandatory" runat="server" CssClass="mandatory" Visible="false" Text="*"></asp:Label>&nbsp;Residence</td>
						                    <td><asp:dropdownlist id="ddlResidence" tabIndex="24" runat="server" Width="120px" 
                                                    CssClass="pagetext"></asp:dropdownlist>
						                    </td>
						                    <td>&nbsp;</td>
						                    <td class="lbl">Registered In</td>
						                    <td><asp:dropdownlist id="ddlRegisteredIn" tabIndex="21" runat="server" 
                                                    Width="120px" CssClass="ddl"></asp:dropdownlist></td>
					                    </tr>
					                    <tr>
					                        <td class="height22" style="width:5px;height:25px" >&nbsp;</td>
						                    <td class="lbl">&nbsp;Date Of Birth&nbsp;</td>
						                    <td ><uc1:DateControl ID="txtDateOfBirth" runat="server" CalenderCss="btn1" 
                                                     TextBoxCss="txt"  TextBoxSize="88px" SetDefaultDate="False"/>
                                            </td>
						                    <td>&nbsp;</td>
						                    <td class="lbl">Registration Date&nbsp;</td>
						                    <td>
                                                <uc1:DateControl ID="txtRegisterationDate" runat="server"  CalenderCss="btn1" 
                                                    TextBoxCss="txt"  TextBoxSize="88px" SetDefaultDate="False"/>
						                           
						                    </td>
					                    </tr>
					                    <tr>
					                        
					                        <td colspan="4" align="right">
                                               </td><td class="lbl">&nbsp; Tax Status&nbsp;</td>
						                    
                                                
                                                    <td >
                                                        <asp:DropDownList ID="ddlTaxStatus" runat="server" CssClass="ddl" tabIndex="23" 
                                                            Width="120px">
                                                        </asp:DropDownList>
                                                    </td>
                            </tr>
                            
					                    <table border="0" cellpadding="0" cellspacing="0" width="100%" visible="False" >
                                            <tr>
                                                <td colspan="3" class="tblbl"
                                                    style="height:10px;font-size:0px;border:none 0px none;line-height:0px">
                                                    &nbsp;</td>
                                            </tr>
                                            <tr>
                                                <td class="background_gray">
                                                    &nbsp;</td>
                                                <td class="lblHeader background_gray"> Other Information</td>
                                                <td class="background_gray">&nbsp;</td>
                                            </tr>
                                            <tr>
                                                <td colspan="3" class="tblbl"
                                                    style="height:10px;font-size:0px;border:none 0px none;line-height:0px">
                                                    &nbsp;</td>
                                            </tr>
                                            <tr>
                                                <td class="height22">&nbsp;</td>
                                                <td class="lbl"> Staff Indicator</td>
                                                <td>
                                                    <asp:dropdownlist id="ddlStaffIndicator" tabIndex="21" runat="server" 
                                                    Width="150px" CssClass="ddl"></asp:dropdownlist>
                                                </td>
                                            </tr>
                                            <tr>
                                                
                                                <td class="height22"><span class="mandatory">*</span>
                                                    </td>
                                                <td class="lbl"> Race Code</td>
                                                <td>
                                                    <asp:dropdownlist id="ddlRaceCode" tabIndex="21" runat="server" 
                                                    Width="150px" CssClass="ddl"></asp:dropdownlist>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="height22"><span class="mandatory">*</span>
                                                    </td>
                                                <td class="lbl"> Schedule Code</td>
                                                <td>
                                                    <asp:dropdownlist id="ddlScheduleCode" tabIndex="21" runat="server" 
                                                    Width="150px" CssClass="ddl"></asp:dropdownlist>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="height22"><span class="mandatory">*</span>
                                                    </td>
                                                <td class="lbl"> Sector Code</td>
                                                <td>
                                                    <asp:dropdownlist id="ddlSectorCode" Visible ="false" tabIndex="21" runat="server" 
                                                    Width="120px" CssClass="ddl"></asp:dropdownlist>
                                                    <asp:TextBox ID="Txtsectorcode" runat="server" Width="150px"></asp:TextBox>
                                                    <asp:Button ID="Btnsectorcode" Width= "100px" CssClass="btn" runat="server" Text="Find Sector code"/>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="height22">
                                                    &nbsp;</td>
                                                <td class="lbl"> Premier Indicator</td>
                                                <td>
                                                    <asp:dropdownlist id="ddlPremierIndicator" tabIndex="21" runat="server" 
                                                    Width="150px" CssClass="ddl"></asp:dropdownlist>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="height22">
                                                    &nbsp;</td>
                                                <td class="lbl"> Customer Segment</td>
                                                <td>
                                                    <asp:dropdownlist id="ddlCustomerSegment" tabIndex="21" runat="server" 
                                                    Width="150px" CssClass="ddl"></asp:dropdownlist>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="height22">&nbsp;</td>
                                                <td class="lbl"> Resident YN </td>
                                                <td>
                                                    <asp:dropdownlist id="DdlresidentYN" tabIndex="21" runat="server" 
                                                    Width="150px" CssClass="ddl"></asp:dropdownlist>
                                                </td>
                                            </tr>
                                           
                                            
                        </table>
                                    
                                    <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                            <tr>
                                                <td colspan="5" class="tblbl" style="height:10px;font-size:0px;border:none 0px none;line-height:0px"> &nbsp;</td>
                                            </tr>
                                            <tr>
                                                <td class="background_gray" style="height: 19px"></td>
                                                <td class="lblHeader background_gray" style="height: 19px"></td>
                                                <td class="background_gray" style="height: 19px"></td>
                                                <td class="lblHeader background_gray" style="height: 19px"></td>
                                                <td class="background_gray" style="height: 19px"></td>
                                            </tr>
                                            <tr>
                                                <td colspan="5" class="tblbl" style="height:10px;font-size:0px;border:none 0px none;line-height:0px"> &nbsp;</td>
                                            </tr>
                                             <tr>
                                                <td class="height22"><span class="mandatory">*</span>
                                                    </td>
                                                 <td class="lbl">Gender&nbsp;</td>  
                                                <td>
                                                 <asp:dropdownlist id="Ddlgender" tabIndex="50" runat="server" 
                                                    Width="120px" CssClass="ddl" AutoPostBack="True"></asp:dropdownlist>  
                                                 </td>  
                                                <td class="lbl">BI CounterParty&nbsp;</td>
                                                <td>
                                                <asp:dropdownlist id="Ddlbicounterparty" tabIndex="51" runat="server" 
                                                    Width="120px" CssClass="ddl"></asp:dropdownlist>
                                                </td>    
                                            </tr>
                                            </table>
                                    
                                     <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                            <tr>
                                                <td colspan="3" class="tblbl" style="height:10px;font-size:0px;border:none 0px none;line-height:0px"> &nbsp;</td>
                                            </tr>
                                            <tr>
                                                <td class="background_gray">&nbsp;</td>
                                                <td class="lblHeader background_gray">&nbsp;</td>
                                                <td class="background_gray">&nbsp;</td>
                                            </tr>
                                            <tr>
                                                <td colspan="3" class="tblbl" style="height:10px;font-size:0px;border:none 0px none;line-height:0px"> &nbsp;</td>
                                            </tr>
                                             <tr>
                                                <td class="height22">&nbsp;</td>
                                                <td class="lbl">Remarks&nbsp;</td>
                                                <td><asp:textbox id="txtRemarks" tabIndex="49" runat="server" 
                                                    Width="405px" CssClass="txt" MaxLength="100"></asp:textbox>&nbsp;</td>
                                            </tr>
                                            </table>
                                                                                    
                         
					                    </tr>					                    			                
                                   </table>
                            </td>
                       </tr> 
                       
                    </table>
                </td>
            </tr>
        </table>
                       
   </asp:Panel>  
   
   <asp:Panel ID="Panelsectorcode" runat="server" CssClass="popupBox1">
            <table align="left" cellpadding="1" cellspacing="0" style="margin-right: 0px">
              <tr>
              <td class="background_gray" align = "center" style="width: 300px" colspan="3" >Please select the sector code. </td>
              <td class="background_gray" align = "right"> <asp:Button ID="Btnclose" 
                      CssClass = "btn" runat="server" Text="X" 
                      BorderStyle="None" Height="15px" Width="15px" /></td>
               </tr>
               <tr>
              <td class="lbl">Code/Description</td>
                   <td style="width: 150px" align = "right" >
                       <asp:TextBox ID="Txtsearchsectorcode" Width= "120px" runat="server"></asp:TextBox>
                   </td>
              <td>
              <asp:Button ID="Btnsearchsectorcode" CssClass = "btn" Width= "50px" runat="server" Text="Search"/>
              </td>
              <td>
              <asp:Button ID="Btnloadall" CssClass = "btn" Width= "50px" runat="server" Text="LoadAll"/>
              </td>
               </tr>
               <tr>
              <td colspan="4">
               <asp:DataGrid ID="Grdsectorcode" Width = "335px" Visible = "true" runat="server" 
                      AllowSorting="True" AutoGenerateColumns="False" BorderStyle="Ridge" 
               BorderWidth="2px" CellPadding="3" CssClass="Grid" AllowPaging="True">
               <SelectedItemStyle CssClass="GridItemSelect" />
               <AlternatingItemStyle CssClass="AlternatItemStyle" />
               <ItemStyle CssClass="GridItem" />
               <HeaderStyle CssClass="GridHeader" />
               <FooterStyle CssClass="GridFooter" />
               <PagerStyle CssClass="GridPager" />
               <Columns>
                                
                <asp:TemplateColumn HeaderText="Code">
                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                        <ItemStyle HorizontalAlign="Right" Wrap="False" />
                            <ItemTemplate>
                                <asp:LinkButton ID="LinkbuttonCount" runat="server" CausesValidation="false" 
                                CommandName="Select" Text='<%# DataBinder.Eval(Container, "DataItem.Data_Value") %>'>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                </asp:LinkButton>
                            </ItemTemplate>
                </asp:TemplateColumn>
                
                <asp:BoundColumn DataField="Misc1" HeaderText="Description" Visible="True" >
                <ItemStyle HorizontalAlign="Right" Wrap="False" />
                <HeaderStyle Font-Bold="False" Wrap="False" />
                </asp:BoundColumn>
                
                </Columns>
                <PagerStyle CssClass="GridFooter" HorizontalAlign="Left" Mode="NumericPages" />
               </asp:DataGrid>
              </td>
              </tr>                
         </table>
        </asp:Panel>
          
</ContentTemplate>
</asp:UpdatePanel> 
<asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1" DisplayAfter="0">
    <ProgressTemplate>
        <div>
            <img alt="Loading" src="../App_Resources/loading.gif" /><span class="lbl">Loading...</span>           
        </div>
    </ProgressTemplate>
</asp:UpdateProgress>

</asp:Content>





