<%@ page title="Verify Student Detail" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_StudentManagement_VerifyStudentDetail, App_Web_dnrykyp2" uiculture="auto" meta:resourcekey="PageResource1" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl" TagPrefix="Date" %>
<%@ Register Src="~/UserControls/Common/CommonSearch/CommonSearch.ascx" TagName="CommonSearchUserControl" TagPrefix="Common" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl" TagPrefix="DPC" %>
<%@ Register Src="~/UserControls/AutoComplete/AutoCompleteControl.ascx" TagName="AutoCompleteControl" TagPrefix="acc" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager" TagPrefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <style>
        /*.no-print {
            display: none !important;
        }*/

        .verify table span {
            white-space: nowrap;
        }
    </style>
    <asp:UpdatePanel ID="HREmployeeMasterSearchUpdatePanel" runat="server">
        <ContentTemplate>
            <Common:CommonSearchUserControl ID="CommonSearchControl" runat="server" Visible="false" />

            <asp:Panel ID="employeesearchdetailpanel" runat="server" meta:resourcekey="employeesearchdetailpanelresource1">
                <div id="divContentPage" class="divcontentpagemargin">
                    <div class="dashBoardLeftCont">
                        <div class="himssuHeader3WireBox">
                            <table>
                                <tr>
                                    <td>
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="102"
                                                Visible="true" runat="server" />
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </div>
                    <div class="row whiteboxpaddingleft">
                        <div class="himssuHeader5WireBox card card-box">
                            <div class="himsBoxHeader card-head">
                                <asp:Panel ID="SearchHeaderPanel" runat="server" meta:resourcekey="SearchHeaderPanelResource1">
                                    <div class="leftdiv">
                                    </div>
                                    <div class="himsBoxTitle">
                                        <div class="headerText">
                                            <header>
                                                <i class="fas fa-search"></i>
                                                <asp:Label ID="SearchHeaderLabel" runat="server" Text="Verify Student Detail"></asp:Label>
                                            </header>
                                        </div>
                                    </div>
                                </asp:Panel>
                            </div>
                            <asp:Panel ID="SearchDetailPanel" runat="server" meta:resourcekey="SearchDetailPanelResource1">
                                <div class="himsBoxContent card-body">
                                    <div class="contentHolder">
                                        <%-- <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="IDNoLabel" runat="server" Text="ID No" meta:resourcekey="IDNoLabelResource1"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="IDNoTextBox" runat="server" onmouseleave="showHideTooltip()" SkinID="CustomWidthTextBox"
                                                    onmouseenter="showHideTooltip()" meta:resourcekey="IDNoSearchTextBoxResource1"
                                                    MaxLength="20"></asp:TextBox>
                                            </div>
                                        </div>--%>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="Label1" runat="server" Text="From ID No"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="FromIDNoTextBox" SkinID="CustomWidthTextBox" runat="server"
                                                    onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" meta:resourcekey="RollNoTextBoxResource1"
                                                    MaxLength="100"></asp:TextBox>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="Label2" runat="server" Text="To ID No"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="ToIDNoTextBox" SkinID="CustomWidthTextBox" runat="server"
                                                    onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" meta:resourcekey="RollNoTextBoxResource1"
                                                    MaxLength="100"></asp:TextBox>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="Label3" runat="server" Text="Specific ID"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="SpecificIDTextBox" SkinID="CustomWidthTextBox" runat="server"
                                                    onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" meta:resourcekey="RollNoTextBoxResource1"
                                                    MaxLength="100"></asp:TextBox>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="FirstNameSearchLabel" runat="server" Text="First Name" meta:resourcekey="FirstNameSearchLabelResource1"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="FirstNameSearchTextBox" SkinID="CustomWidthTextBox"
                                                    runat="server" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    meta:resourcekey="FirstNameSearchTextBoxResource1" MaxLength="100"></asp:TextBox>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="LastNameLabel" runat="server" Text="Last Name"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="LastNameTextBox" SkinID="CustomWidthTextBox" runat="server"
                                                    onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" meta:resourcekey="LastNameTextBoxResource1"
                                                    MaxLength="100"></asp:TextBox>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="DepartmentLabel" runat="server" Text="Department"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList runat="server" ID="DepartmentDropDownList" SkinID="CustomWidthDropDownList"
                                                    CssClass="form-control" onmouseleave="showHideTooltip()" AutoPostBack="true" onmouseenter="showHideTooltip()"
                                                    OnSelectedIndexChanged="DepartmentDropDownList_SelectedIndexChanged">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="ClassLabel" runat="server" Text="Class"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList runat="server" ID="ClassDropDownList" SkinID="CustomWidthDropDownList" OnSelectedIndexChanged="ClassDropDownList_SelectedIndexChanged"
                                                    CssClass="form-control" onmouseleave="showHideTooltip()" AutoPostBack="true" onmouseenter="showHideTooltip()">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="DivisionLabel" runat="server" Text="Division"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList runat="server" ID="DivisionDropDownList" SkinID="CustomWidthDropDownList"
                                                    CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                </asp:DropDownList>
                                            </div>
                                        </div>

                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="RollNoLabel" runat="server" Text="From Roll No"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="RollNoTextBox" SkinID="CustomWidthTextBox" runat="server"
                                                    onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" meta:resourcekey="RollNoTextBoxResource1"
                                                    MaxLength="100" onkeypress="return isNumberKey(event)" onpaste="return false;"></asp:TextBox>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="ToRollNoLabel" runat="server" Text="To Roll No"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="ToRollNoTextBox" SkinID="CustomWidthTextBox" runat="server"
                                                    onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" meta:resourcekey="RollNoTextBoxResource1"
                                                    MaxLength="100" onkeypress="return isNumberKey(event)" onpaste="return false;"></asp:TextBox>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="StatusLabel" runat="server" Text="Status"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList runat="server" ID="StatusDropDownList" SkinID="CustomWidthDropDownList"
                                                    CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                </asp:DropDownList>
                                            </div>
                                        </div>

                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="OrderByLabel" runat="server" Text="Order By"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="OrderByDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" CssClass="form-control">
                                                </asp:DropDownList>
                                            </div>
                                        </div>

                                        <div class="col-md-9 pTop15" id="CodeNoteDiv" runat="server">
                                            <div class="alert alert-info">
                                                <i class="material-icons">info</i> |&nbsp;
                                            <asp:Label ID="RamarkLabel" runat="server" Text="Specific ID : Add Student Code with , Comma separation without any Space (Eg. 2. 5. 10)" Font-Bold="true"></asp:Label>
                                            </div>
                                        </div>
                                        <div id="FilterStatusDiv" runat="server" visible="true">
                                            <div class="outerBox11 pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:CheckBox ID="FilterCheckBox" runat="server" Visible="true" AutoPostBack="True" OnCheckedChanged="FilterCheckBox_CheckedChanged" />
                                                    <asp:Label ID="FilterLabel" runat="server" Text="Filter Fields" class="pLeft5"></asp:Label>
                                                </div>
                                                <div runat="server" class="fLeft pRight5 chck-dropdown-onclick bg-lghtgrey outerBox11 col-md-12 overflow-x-hidden padd-0">
                                                    <span class="pLeft9">
                                                        <asp:CheckBox ID="AllFilterCheckBox" Text="Select All" runat="server"
                                                            AutoPostBack="True" OnCheckedChanged="AllFilterCheckBox_CheckedChanged" />
                                                    </span>
                                                    <asp:CheckBoxList ID="FilterCheckBoxList" runat="server">
                                                    </asp:CheckBoxList>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="outerBox ">
                                            <asp:CheckBox ID="ShowWithPhotoCheckBox" runat="server" AutoPostBack="false" class="pLeft5" Visible="false" Text="Show With Photo" />
                                        </div>
                                        <div class="cBoth">
                                        </div>
                                        <div class="alignCenter col-md-12 pTop5 pb5">
                                            <asp:Button ID="SearchButton" runat="server" Text="&#xf002; Search" OnClick="SearchButton_Click"
                                                SkinID="0" CssClass="btn-search btn fas" />
                                            <asp:Button ID="SearchClearButton" runat="server" Text="&#xf0e2; Reset" OnClick="SearchClearButton_Click"
                                                meta:resourcekey="ClearButtonResource1" SkinID="0" CssClass="btn-reset btn fas" />
                                            <asp:Button ID="UpdateButton" runat="server" Text="&#xf021; Update" OnClick="UpdateButton_Click"
                                                SkinID="0" CssClass="btn-update btn fas" />
                                            <asp:Button ID="ExportButton" runat="server" Enabled="false" OnClick="ExportButton_Click" Text="&#xf093; Export"
                                                SkinID="0" class="btn-examcommon btn fas" />
                                            <asp:HiddenField ID="GenderTypeHiddenField" runat="server" ClientIdMode="Static" />
                                        </div>
                                        <div id="StudentMasterGridDiv" runat="server" visible="false">
                                            <div class="himssuHeader7WireBox col-md-12 pTop5">
                                                <div class="himsBoxHeader" id="StudentDiv" visible="false" runat="server">
                                                    <div class="leftdiv">
                                                    </div>
                                                    <div class="himsBoxTitle" style="width: 99%">
                                                        <div class="headerText">
                                                            <div>
                                                                <asp:Label ID="GridViewLabel" Text="" runat="server" Font-Bold="true" />
                                                            </div>
                                                        </div>
                                                        <div class="col-md-12 padd-0">
                                                            <div class="col-md-5">
                                                                <asp:Label ID="RecordsPerPage" Text="Records per Page : " runat="server" />
                                                                <asp:DropDownList ID="AddRowsToGridDropDownList" OnSelectedIndexChanged="AddRowsToGridDropDownList_SelectedIndexChanged" SkinID="CustomWidthDropDownList" Width="60px" runat="server"
                                                                    AutoPostBack="true">
                                                                    <%-- <asp:ListItem Text="10" Value="10"></asp:ListItem>
                                                                    <asp:ListItem Text="20" Value="20"></asp:ListItem>--%>
                                                                    <asp:ListItem Text="50" Value="50" Selected="True"></asp:ListItem>
                                                                    <asp:ListItem Text="100" Value="100"></asp:ListItem>
                                                                    <asp:ListItem Text="200" Value="200"></asp:ListItem>
                                                                </asp:DropDownList>
                                                            </div>
                                                            <div class="col-md-7">
                                                                <uc1:GridViewPager ID="StudentSearchGridView_GridViewPager" runat="server" OnFirstRecordClick="StudentSearchGridView_GridViewPager_FirstRecordClick"
                                                                    OnLastRecordClick="StudentSearchGridView_GridViewPager_LastRecordClick" OnNextRecordClick="StudentSearchGridView_GridViewPager_NextRecordClick"
                                                                    OnPrevRecordClick="StudentSearchGridView_GridViewPager_PrevRecordClick" OnTextBoxValueChange="StudentSearchGridView_GridViewPager_TextBoxValueChange"
                                                                    ParentGridView="StudentSearchGridView" />
                                                            </div>

                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="himsBoxContent pTop15">
                                                    <asp:UpdatePanel ID="MenuPlanDetailUpdatePanel" runat="server" UpdateMode="Always">
                                                        <ContentTemplate>
                                                            <div id="Div5" runat="server" class=" table-responsive verify pTop10">
                                                                <asp:GridView ID="StudentSearchGridView" runat="server" AutoGenerateColumns="False" EmptyDataText="No records found"
                                                                    OnRowDataBound="StudentSearchGridView_RowDataBound" DataKeyNames="StudentId,Code"
                                                                    AllowPaging="true" SkinID="" ShowHeader="True" PagerSettings-Visible="false" CssClass="table table-striped table-bordered table-hover table-white-space">
                                                                    <Columns>
                                                                        <asp:TemplateField>
                                                                            <HeaderTemplate>
                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                    <input type="checkbox" id="HeaderSelectCheckBox" runat="server" enabled="true"
                                                                                        visible="true" class="clsHeader" onclick="CheckUncheckstatus(this);" />
                                                                                    <span></span>
                                                                                </label>
                                                                            </HeaderTemplate>
                                                                            <ItemStyle HorizontalAlign="Center" />
                                                                            <ItemTemplate>
                                                                                <label class="rt-chkbox rt-chkbox-outline clsHeader11">
                                                                                    <input type="checkbox" id='EditCheckBox_<%#Eval("StudentId") %>' class="check" onclick="checkuncheck(this);" />
                                                                                    <asp:HiddenField ID="hdnFlag" Value="0" runat="server" ClientIDMode="Static" />
                                                                                    <span></span>
                                                                                </label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="ID No">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="IDNoLabel" runat="server" Text='<%#Eval("Code") %>' Width="100px"></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Class">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="ClassLabel" runat="server" Text='<%#Eval("ClassName") %>' Width="50px"></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Name">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="NameLabel" runat="server" Text='<%#Eval("Name") %>' Width="200px"></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Roll No">
                                                                            <ItemTemplate>
                                                                                <div id="Displaydata">
                                                                                    <asp:Label ID="RoillNoLabel" runat="server" Text='<%#Eval("RollNo") %>' Width="50px"></asp:Label>
                                                                                </div>
                                                                                <div class="divEdit_<%#Eval("StudentId")%>" style="display: none;">
                                                                                </div>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="LastName" Visible="false" HeaderStyle-HorizontalAlign="Left"
                                                                            ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <div class="divDisplay_<%#Eval("StudentId")%> divdisplay">
                                                                                    <asp:Label ID="LastNameLabel" runat="server" Text='<%#Eval("LastName") %>' Width="150px"></asp:Label>
                                                                                </div>
                                                                                <div class="divEdit_<%#Eval("StudentId")%> divedit" style="display: none;">
                                                                                    <asp:TextBox ID="LastNameTextBox" runat="server" Text='<%#Eval("LastName") %>' Width="150px"></asp:TextBox>
                                                                                </div>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="First Name" Visible="false" HeaderStyle-HorizontalAlign="Left"
                                                                            ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <div class="divDisplay_<%#Eval("StudentId")%> divdisplay">
                                                                                    <asp:Label ID="FirstNameLabel" runat="server" Text='<%#Eval("FirstName") %>' Width="150px"></asp:Label>
                                                                                </div>
                                                                                <div class="divEdit_<%#Eval("StudentId")%> divedit" style="display: none;">
                                                                                    <asp:TextBox ID="FirstNameTextBox" runat="server" Text='<%#Eval("FirstName") %>' Width="150px"></asp:TextBox>
                                                                                </div>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Middle Name" Visible="false" HeaderStyle-HorizontalAlign="Left"
                                                                            ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <div class="divDisplay_<%#Eval("StudentId")%> divdisplay">
                                                                                    <asp:Label ID="MiddleNameLabel" runat="server" Text='<%#Eval("MiddleName") %>' Width="150px"></asp:Label>
                                                                                </div>
                                                                                <div class="divEdit_<%#Eval("StudentId")%> divedit" style="display: none;">
                                                                                    <asp:TextBox ID="MiddleNameTextBox" runat="server" Text='<%#Eval("MiddleName") %>' Width="150px"></asp:TextBox>
                                                                                </div>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Mothername" Visible="false" HeaderStyle-HorizontalAlign="Left"
                                                                            ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <div class="divDisplay_<%#Eval("StudentId")%> divdisplay">
                                                                                    <asp:Label ID="MothernameLabel" runat="server" Text='<%#Eval("Mothername") %>' Width="200px"></asp:Label>
                                                                                </div>
                                                                                <div class="divEdit_<%#Eval("StudentId")%> divedit" style="display: none;">
                                                                                    <asp:TextBox ID="MothernameTextBox" runat="server" Text='<%#Eval("Mothername") %>' Width="200px"></asp:TextBox>
                                                                                </div>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Religion" Visible="false">
                                                                            <ItemTemplate>
                                                                                <div class="divDisplay_<%#Eval("StudentId")%> divdisplay">
                                                                                    <asp:Label ID="ReligionLabel" runat="server" Text='<%#Eval("Religion") %>' Width="120px"></asp:Label>
                                                                                </div>
                                                                                <div class="divEdit_<%#Eval("StudentId")%> divedit" style="display: none;">
                                                                                    <asp:DropDownList ID="ReligionDropDownList" runat="server" Width="120px" SkinID="CustomWidthDropDownList"></asp:DropDownList>
                                                                                </div>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="FamilyCast" Visible="false" HeaderStyle-HorizontalAlign="Left"
                                                                            ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <div class="divDisplay_<%#Eval("StudentId")%> divdisplay">
                                                                                    <asp:Label ID="FamilyCastLabel" runat="server" Text='<%#Eval("FamilyCast") %>' Width="150px"></asp:Label>
                                                                                </div>
                                                                                <div class="divEdit_<%#Eval("StudentId")%> divedit" style="display: none;">
                                                                                    <asp:TextBox ID="FamilyCastTextBox" runat="server" Text='<%#Eval("FamilyCast") %>' Width="150px"></asp:TextBox>
                                                                                </div>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Caste Category" HeaderStyle-HorizontalAlign="Left"
                                                                            ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <div class="divDisplay_<%#Eval("StudentId")%> divdisplay">
                                                                                    <asp:Label ID="CastCatagoryLabel" runat="server" Text='<%#Eval("CasteCategory") %>' Width="100px"></asp:Label>
                                                                                </div>
                                                                                <div class="divEdit_<%#Eval("StudentId")%> divedit" style="display: none;">
                                                                                    <asp:DropDownList ID="CastCatagoryDropDownList" runat="server" Width="100px" SkinID="CustomWidthDropDownList"></asp:DropDownList>
                                                                                </div>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="BirthPlace" Visible="false" HeaderStyle-HorizontalAlign="Left"
                                                                            ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <div class="divDisplay_<%#Eval("StudentId")%> divdisplay">
                                                                                    <asp:Label ID="BirthPlaceLabel" CssClass="boxEllips" runat="server"
                                                                                        Text='<%#Eval("BirthPlace") %>' Width="200px"></asp:Label>
                                                                                </div>
                                                                                <div class="divEdit_<%#Eval("StudentId")%> divedit" style="display: none;">
                                                                                    <asp:TextBox ID="BirthPlaceTextBox" runat="server" Text='<%#Eval("BirthPlace") %>' Width="200px"></asp:TextBox>
                                                                                </div>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="BirthTaluka" Visible="false" HeaderStyle-HorizontalAlign="Left"
                                                                            ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <div class="divDisplay_<%#Eval("StudentId")%> divdisplay">
                                                                                    <asp:Label ID="BirthTalukaLabel" runat="server" Text='<%#Eval("BirthTaluka") %>' Width="120px"></asp:Label>
                                                                                </div>
                                                                                <div class="divEdit_<%#Eval("StudentId")%> divedit" style="display: none;">
                                                                                    <asp:TextBox ID="BirthTalukaTextBox" runat="server" Text='<%#Eval("BirthTaluka") %>' Width="120px"></asp:TextBox>
                                                                                </div>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="BirthDistrict" Visible="false" HeaderStyle-HorizontalAlign="Left"
                                                                            ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <div class="divDisplay_<%#Eval("StudentId")%> divdisplay">
                                                                                    <asp:Label ID="BirthDistrictLabel" runat="server" Text='<%#Eval("BirthDistrict") %>' Width="120px"></asp:Label>
                                                                                </div>
                                                                                <div class="divEdit_<%#Eval("StudentId")%> divedit" style="display: none;">
                                                                                    <asp:TextBox ID="BirthDistrictTextBox" runat="server" Text='<%#Eval("BirthDistrict") %>' Width="120px"></asp:TextBox>
                                                                                </div>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Date Of Birth" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <div class="divDisplay_<%#Eval("StudentId")%> divdisplay">
                                                                                    <asp:Label ID="DateOfBirthLabel" runat="server" Text='<%#Eval("DateOfBirth", "{0:dd/MM/yyyy}") %>' Width="90px"
                                                                                        meta:resourcekey="ItemNameLabelResource2"></asp:Label>
                                                                                </div>
                                                                                <div class="divEdit_<%#Eval("StudentId")%> divedit" style="display: none;">
                                                                                    <DPC:DatePickerControl DisplayDatePicker="false" Width="90px" ID="DateOfBirthDatePickerControl" Text='<%#Eval("DateOfBirth","{0:dd-MM-yyyy}") %>'
                                                                                        runat="Server"></DPC:DatePickerControl>
                                                                                </div>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Previous School" Visible="false" ItemStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <div class="divDisplay_<%#Eval("StudentId")%> divdisplay">
                                                                                    <asp:Label ID="PreviousSchoolLabel" runat="server" Text='<%#Eval("PreviousSchool") %>' Width="200px"></asp:Label>
                                                                                </div>
                                                                                <div class="divEdit_<%#Eval("StudentId")%> divedit" style="display: none;">
                                                                                    <asp:TextBox ID="PreviousSchoolTextBox" runat="server" Text='<%#Eval("PreviousSchool") %>' Width="200px"></asp:TextBox>
                                                                                </div>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Admission Date" ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <div class="divDisplay_<%#Eval("StudentId")%> divdisplay">
                                                                                    <asp:Label ID="AdmissionDateLabel" runat="server" Text='<%#Eval("AdmissionDate", "{0:dd/MM/yyyy}") %>' Width="90px"
                                                                                        meta:resourcekey="ItemNameLabelResource2"></asp:Label>
                                                                                </div>
                                                                                <div class="divEdit_<%#Eval("StudentId")%> divedit" style="display: none;">
                                                                                    <DPC:DatePickerControl DisplayDatePicker="false" ID="AdmissionDateDatePickerControl" Width="90px" Text='<%#Eval("AdmissionDate","{0:dd-MM-yyyy}") %>'
                                                                                        runat="Server"></DPC:DatePickerControl>
                                                                                </div>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Admission Standard" Visible="false">
                                                                            <ItemTemplate>
                                                                                <div class="divDisplay_<%#Eval("StudentId")%> divdisplay">
                                                                                    <asp:Label ID="AdmissionStandardLabel" runat="server" Text='<%#Eval("AdmissionStandard") %>' Width="90px"></asp:Label>
                                                                                </div>
                                                                                <div class="divEdit_<%#Eval("StudentId")%> divedit" style="display: none;">
                                                                                    <asp:DropDownList ID="AdmissionStandardDropDownList" runat="server" Width="100%"></asp:DropDownList>
                                                                                </div>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Father Name" Visible="false" HeaderStyle-HorizontalAlign="Left"
                                                                            ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <div class="divDisplay_<%#Eval("StudentId")%> divdisplay">
                                                                                    <asp:Label ID="FatherNameLabel" runat="server" Text='<%#Eval("FatherName") %>' Width="200px"></asp:Label>
                                                                                </div>
                                                                                <div class="divEdit_<%#Eval("StudentId")%> divedit" style="display: none;">
                                                                                    <asp:TextBox ID="FatherNameTextBox" runat="server" Text='<%#Eval("FatherName") %>' Width="200px"></asp:TextBox>
                                                                                </div>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>

                                                                        <asp:TemplateField HeaderText="Gender" HeaderStyle-HorizontalAlign="Left"
                                                                            ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <div >
                                                                                    <asp:Label ID="GenderLabel" runat="server" Text='<%#Eval("Gender") %>' Width="80px"></asp:Label>
                                                                                    <asp:DropDownList ID="GenderDropDownList" runat="server" Width="80px" SkinID="CustomWidthDropDownList" style="display: none;"></asp:DropDownList>
                                                                                </div>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="MotherTongue" Visible="false" HeaderStyle-HorizontalAlign="Left"
                                                                            ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <div class="divDisplay_<%#Eval("StudentId")%> divdisplay">
                                                                                    <asp:Label ID="MotherTongueLabel" runat="server" Text='<%#Eval("MotherTongue") %>' Width="120px"></asp:Label>
                                                                                </div>
                                                                                <div class="divEdit_<%#Eval("StudentId")%> divedit" style="display: none;">
                                                                                    <asp:TextBox ID="MotherTongueTextBox" runat="server" Text='<%#Eval("MotherTongue") %>' Width="120px"></asp:TextBox>
                                                                                </div>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Nationality" Visible="false" HeaderStyle-HorizontalAlign="Left"
                                                                            ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <div class="divDisplay_<%#Eval("StudentId")%> divdisplay">
                                                                                    <asp:Label ID="NationalityLabel" runat="server" Text='<%#Eval("Nationality") %>' Width="140px"></asp:Label>
                                                                                </div>
                                                                                <div class="divEdit_<%#Eval("StudentId")%> divedit" style="display: none;">
                                                                                    <asp:DropDownList ID="NationalityDropDownList" runat="server" Width="140px" SkinID="CustomWidthDropDownList"></asp:DropDownList>
                                                                                </div>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="FatherContactNo" Visible="false" HeaderStyle-HorizontalAlign="Left"
                                                                            ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <div class="divDisplay_<%#Eval("StudentId")%> divdisplay">
                                                                                    <asp:Label ID="FatherContactNoLabel" runat="server" Text='<%#Eval("FatherContactNo") %>' Width="120px"></asp:Label>
                                                                                </div>
                                                                                <div class="divEdit_<%#Eval("StudentId")%> divedit" style="display: none;">
                                                                                    <asp:TextBox ID="FatherContactNoTextBox" runat="server" Text='<%#Eval("FatherContactNo") %>' Width="120px"></asp:TextBox>
                                                                                </div>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="MotherContactNo" Visible="false" HeaderStyle-HorizontalAlign="Left"
                                                                            ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <div class="divDisplay_<%#Eval("StudentId")%> divdisplay">
                                                                                    <asp:Label ID="MotherContactNoLabel" runat="server" Text='<%#Eval("MotherContactNo") %>' Width="120px"></asp:Label>
                                                                                </div>
                                                                                <div class="divEdit_<%#Eval("StudentId")%> divedit" style="display: none;">
                                                                                    <asp:TextBox ID="MotherContactNoTextBox" runat="server" Text='<%#Eval("MotherContactNo") %>' Width="120px"></asp:TextBox>
                                                                                </div>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="PresentStreetOne" Visible="false" HeaderStyle-HorizontalAlign="Left"
                                                                            ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <div class="divDisplay_<%#Eval("StudentId")%> divdisplay">
                                                                                    <asp:Label ID="PresentStreetOneLabel" runat="server" Text='<%#Eval("PresentStreetOne") %>' Width="400px"></asp:Label>
                                                                                </div>
                                                                                <div class="divEdit_<%#Eval("StudentId")%> divedit" style="display: none;">
                                                                                    <asp:TextBox ID="PresentStreetOneTextBox" runat="server" Text='<%#Eval("PresentStreetOne") %>' Width="400px"></asp:TextBox>
                                                                                </div>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="PresentStreetTwo" Visible="false" HeaderStyle-HorizontalAlign="Left"
                                                                            ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <div class="divDisplay_<%#Eval("StudentId")%> divdisplay">
                                                                                    <asp:Label ID="PresentStreetTwoLabel" runat="server" Text='<%#Eval("PresentStreetTwo") %>' Width="400px"></asp:Label>
                                                                                </div>
                                                                                <div class="divEdit_<%#Eval("StudentId")%> divedit" style="display: none;">
                                                                                    <asp:TextBox ID="PresentStreetTwoTextBox" runat="server" Text='<%#Eval("PresentStreetTwo") %>' Width="400px"></asp:TextBox>
                                                                                </div>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="PresentStreetThree" Visible="false" HeaderStyle-HorizontalAlign="Left"
                                                                            ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <div class="divDisplay_<%#Eval("StudentId")%> divdisplay">
                                                                                    <asp:Label ID="PresentStreetThreeLabel" runat="server" Text='<%#Eval("PresentStreetThree") %>' Width="400px"></asp:Label>
                                                                                </div>
                                                                                <div class="divEdit_<%#Eval("StudentId")%> divedit" style="display: none;">
                                                                                    <asp:TextBox ID="PresentStreetThreeTextBox" runat="server" Text='<%#Eval("PresentStreetThree") %>' Width="400px"></asp:TextBox>
                                                                                </div>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Student ContactNo" Visible="false" HeaderStyle-HorizontalAlign="Left"
                                                                            ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <div class="divDisplay_<%#Eval("StudentId")%> divdisplay">
                                                                                    <asp:Label ID="ContactDetailLabel" runat="server" Text='<%#Eval("StudentContactNo") %>' Width="120px"></asp:Label>
                                                                                </div>
                                                                                <div class="divEdit_<%#Eval("StudentId")%> divedit" style="display: none;">
                                                                                    <asp:TextBox ID="ContactDetailTextBox" runat="server" Text='<%#Eval("StudentContactNo") %>' Width="120px"></asp:TextBox>
                                                                                </div>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Student Email" Visible="false" HeaderStyle-HorizontalAlign="Left"
                                                                            ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <div class="divDisplay_<%#Eval("StudentId")%> divdisplay">
                                                                                    <asp:Label ID="StudentEmailLabel" runat="server" Text='<%#Eval("StudentEmail") %>' Width="250px"></asp:Label>
                                                                                </div>
                                                                                <div class="divEdit_<%#Eval("StudentId")%> divedit" style="display: none;">
                                                                                    <asp:TextBox ID="StudentEmailTextBox" runat="server" Text='<%#Eval("StudentEmail") %>' Width="250px"></asp:TextBox>
                                                                                </div>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="UIDNumber" Visible="false" HeaderStyle-HorizontalAlign="Left"
                                                                            ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <div class="divDisplay_<%#Eval("StudentId")%> divdisplay">
                                                                                    <asp:Label ID="UIDNumberLabel" runat="server" Text='<%#Eval("UIDNumber") %>' Width="150px"></asp:Label>
                                                                                </div>
                                                                                <div class="divEdit_<%#Eval("StudentId")%> divedit" style="display: none;">
                                                                                    <asp:TextBox ID="UIDNumberTextBox" runat="server" Text='<%#Eval("UIDNumber") %>' Width="150px"></asp:TextBox>
                                                                                </div>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="AadhaarNumber" Visible="false" HeaderStyle-HorizontalAlign="Left"
                                                                            ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <div class="divDisplay_<%#Eval("StudentId")%> divdisplay">
                                                                                    <asp:Label ID="AdhaarNumberLabel" runat="server" Text='<%#Eval("AdhaarNumber") %>' Width="150px"></asp:Label>
                                                                                </div>
                                                                                <div class="divEdit_<%#Eval("StudentId")%> divedit" style="display: none;">
                                                                                    <asp:TextBox ID="AdhaarNumberTextBox" runat="server" Text='<%#Eval("AdhaarNumber") %>' Width="150px"></asp:TextBox>
                                                                                </div>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="BankBranch" Visible="false" HeaderStyle-HorizontalAlign="Left"
                                                                            ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <div class="divDisplay_<%#Eval("StudentId")%> divdisplay">
                                                                                    <asp:Label ID="BankBranchLabel" runat="server" Text='<%#Eval("BankBranch") %>' Width="200px"></asp:Label>
                                                                                </div>
                                                                                <div class="divEdit_<%#Eval("StudentId")%> divedit" style="display: none;">
                                                                                    <asp:TextBox ID="BankBranchTextBox" runat="server" Text='<%#Eval("BankBranch") %>' Width="200px"></asp:TextBox>
                                                                                </div>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="BankAccountNumber" Visible="false" HeaderStyle-HorizontalAlign="Left"
                                                                            ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <div class="divDisplay_<%#Eval("StudentId")%> divdisplay">
                                                                                    <asp:Label ID="BankAccountNumberLabel" runat="server" Text='<%#Eval("BankAccountNumber") %>' Width="200px"></asp:Label>

                                                                                </div>
                                                                                <div class="divEdit_<%#Eval("StudentId")%> divedit" style="display: none;">
                                                                                    <asp:TextBox ID="BankAccountNumberTextBox" runat="server" Text='<%#Eval("BankAccountNumber") %>' Width="200px"></asp:TextBox>
                                                                                </div>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="BankName" Visible="false" HeaderStyle-HorizontalAlign="Left"
                                                                            ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <div class="divDisplay_<%#Eval("StudentId")%> divdisplay">
                                                                                    <asp:Label ID="BankNameLabel" runat="server" Text='<%#Eval("BankName") %>' Width="200px"></asp:Label>
                                                                                </div>
                                                                                <div class="divEdit_<%#Eval("StudentId")%> divedit" style="display: none;">
                                                                                    <asp:TextBox ID="BankNameTextBox" runat="server" Text='<%#Eval("BankName") %> ' Width="200px"></asp:TextBox>
                                                                                </div>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="BankIFSCCode" Visible="false" HeaderStyle-HorizontalAlign="Left"
                                                                            ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <div class="divDisplay_<%#Eval("StudentId")%> divdisplay">
                                                                                    <asp:Label ID="BankIFSCCodeLabel" runat="server" Text='<%#Eval("BankIFSCCode") %>' Width="120px"></asp:Label>
                                                                                </div>
                                                                                <div class="divEdit_<%#Eval("StudentId")%> divedit" style="display: none;">
                                                                                    <asp:TextBox ID="BankIFSCCodeTextBox" runat="server" Text='<%#Eval("BankIFSCCode") %>' Width="120px"></asp:TextBox>
                                                                                </div>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="BankAccountHolderName" Visible="false" HeaderStyle-HorizontalAlign="Left"
                                                                            ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <div class="divDisplay_<%#Eval("StudentId")%> divdisplay">
                                                                                    <asp:Label ID="BankAccountHolderNameLabel" runat="server" Text='<%#Eval("BankAccountHolderName") %>' Width="120px"></asp:Label>
                                                                                </div>
                                                                                <div class="divEdit_<%#Eval("StudentId")%> divedit" style="display: none;">
                                                                                    <asp:TextBox ID="BankAccountHolderNameTextBox" runat="server" Text='<%#Eval("BankAccountHolderName") %>' Width="120px"></asp:TextBox>
                                                                                </div>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Birth State" Visible="false" HeaderStyle-HorizontalAlign="Left"
                                                                            ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <div class="divDisplay_<%#Eval("StudentId")%> divdisplay">
                                                                                    <asp:Label ID="BirthStateLabel" runat="server" Text='<%#Eval("BirthState") %>' Width="120px"></asp:Label>
                                                                                </div>
                                                                                <div class="divEdit_<%#Eval("StudentId")%> divedit" style="display: none;">
                                                                                    <asp:TextBox ID="BirthStateTextBox" runat="server" Text='<%#Eval("BirthState") %>' Width="120px"></asp:TextBox>
                                                                                </div>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Birth Country" Visible="false" HeaderStyle-HorizontalAlign="Left"
                                                                            ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <div class="divDisplay_<%#Eval("StudentId")%> divdisplay">
                                                                                    <asp:Label ID="BirthCountryLabel" runat="server" Text='<%#Eval("BirthCountry") %>' Width="120px"></asp:Label>
                                                                                </div>
                                                                                <div class="divEdit_<%#Eval("StudentId")%> divedit" style="display: none;">
                                                                                    <asp:TextBox ID="BirthCountryTextBox" runat="server" Text='<%#Eval("BirthCountry") %>' Width="120px"></asp:TextBox>
                                                                                </div>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Marriage Anniversary Date" Visible="false" ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <div class="divDisplay_<%#Eval("StudentId")%> divdisplay">
                                                                                    <asp:Label ID="MarriageAnniversaryDateLabel" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"MarriageAnniversaryDate").ToString()=="01/01/1900 00:00:00"? "":Eval("MarriageAnniversaryDate", "{0:dd/MM/yyyy}") %>' Width="90px"
                                                                                        meta:resourcekey="ItemNameLabelResource2"></asp:Label>
                                                                                </div>
                                                                                <div class="divEdit_<%#Eval("StudentId")%> divedit" style="display: none;">
                                                                                    <DPC:DatePickerControl DisplayDatePicker="false" ID="MarriageAnniversaryDateDatePickerControl" Width="90px" Text='<%# DataBinder.Eval(Container.DataItem,"MarriageAnniversaryDate").ToString()=="01/01/1900 00:00:00" ? "":Eval("MarriageAnniversaryDate", "{0:dd/MM/yyyy}") %>'
                                                                                        runat="Server"></DPC:DatePickerControl>
                                                                                </div>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                    </Columns>
                                                                </asp:GridView>
                                                            </div>
                                                        </ContentTemplate>
                                                    </asp:UpdatePanel>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>
                </div>
                </div>
            </asp:Panel>

        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../JavaScript/rjs/encrypt/student-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/student")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
    <script type="text/javascript" language="javascript">
        function CheckUncheckstatus(obj) {

            if ($(obj).is(':checked')) {
                //$('.check').attr('checked', true);
                $('.clsHeader11').children().prop('checked', true);
            }
            else {
                //$('.check').attr('checked', false);
                $('.clsHeader11').children().prop('checked', false);
            }
            $('.clsHeader11').each(function () {
                    checkuncheck($(this).children('input[type=checkbox]')[0]);
                });
        }

        // Changes for MantisId : 0034447
        function checkuncheck(obj) {
            var id = $(obj).attr('id').split('_')[1];
            var row = obj.parentNode.parentNode.parentNode.rowIndex + 1;
            if (row < 10)
                row = "0" + row;
            var hiddenField = document.getElementById('<%= GenderTypeHiddenField.ClientID %>');
            var hiddenFieldValue = hiddenField.value;
            var Field = document.getElementById('ctl00_CP_StudentSearchGridView_ctl' + row + '_GenderLabel')
            var GenderDropDown = document.getElementById('ctl00_CP_StudentSearchGridView_ctl' + row + '_GenderDropDownList')
            var FieldName = Field.textContent;
            //ctl00_CP_StudentSearchGridView_ctl03_GenderLabel 
            if ($(obj).is(':checked')) {
                $(".divEdit_" + id).show();
                $('.divDisplay_' + id).hide();
                GenderDropDown.style.display = 'block';
                Field.style.display = 'none';
                $(obj).next("input[name$=hdnFlag]").val(1);
                if (hiddenFieldValue.toLowerCase() != FieldName.toLowerCase() && hiddenFieldValue.toLowerCase() != 'all')
                {
                    Field.style.display = 'block';
                    GenderDropDown.style.display = 'none';
                }
            }
            else {
                $(".divEdit_" + id).hide();
                $('.divDisplay_' + id).show();
                $(obj).next("input[name$=hdnFlag]").val(0);
                Field.style.display = 'block';
                GenderDropDown.style.display = 'none';
            }
        }
        //function checkAll() {
        //    $('#ctl00_CP_StudentSearchGridView tr').each(function () {
        //        if ($(this).find('input[type=hidden]').val() == 1) {
        //            var obj = $(this).find('input[type=hidden]').prev('input[type=checkbox]');
        //            var id = $(obj).attr('id').split('_')[1];
        //            $(obj).prop('checked', true);
        //            $(".divEdit_" + id).show();
        //            $('.divDisplay_' + id).hide();
        //        }
        //    });
        //}

        function checkAll() {
            $('#ctl00_CP_StudentSearchGridView tr').each(function () {
                if ($(this).find('input[type=hidden]').val() == 1) {
                    var obj = $(this).find('input[type=hidden]').prev('input[type=checkbox]')[0];
                    var id = $(obj).attr('id').split('_')[1];
                    $(obj).prop('checked', true);
                    checkuncheck(obj);
                }
            });
        }

        function FormatIt(obj) {
            if (obj.value.length == 2)
                obj.value = obj.value + "/";
            if (obj.value.length == 5)
                obj.value = obj.value + "/";
        }





    </script>
    <%-- <script type="text/javascript">
        //$(document).ready(function () {
        //    $("[id*=HeaderSelectCheckBox]").click(function () {
        //        var HeaderSelectCheckBox = $(this);
        //        var grid = $(this).closest("table");
        //        $("input[type=checkbox]", grid).each(function () {
        //            if (HeaderSelectCheckBox.is(":checked")) {
        //                $(this).attr("checked", "checked");
        //                $("td", $(this).closest("tr")).addClass("selected");
        //            } else {
        //                $(this).removeAttr("checked");
        //                $("td", $(this).closest("tr")).removeClass("selected");
        //            }
        //        });
        //    });
        //    $("[id*=chkRow]").click(function () {
        //        var grid = $(this).closest("table");
        //        var HeaderSelectCheckBox = $("[id*=HeaderSelectCheckBox]", grid);
        //        if (!$(this).is(":checked")) {
        //            $("td", $(this).closest("tr")).removeClass("selected");
        //            HeaderSelectCheckBox.removeAttr("checked");
        //        } else {
        //            $("td", $(this).closest("tr")).addClass("selected");
        //            if ($("[id*=chkRow]", grid).length == $("[id*=chkRow]:checked", grid).length) {
        //                HeaderSelectCheckBox.attr("checked", "checked");
        //            }
        //        }
        //    });


           


        //});

        //var parameter = Sys.WebForms.PageRequestManager.getInstance();

        //parameter.add_endRequest(function () {
        //    $("[id*=HeaderSelectCheckBox]").click(function () {
             
        //        var HeaderSelectCheckBox = $(this);
                
        //        var grid = $(this).closest("table");
                
        //        $("input[type=checkbox]", grid).each(function () {
                    
        //            if (HeaderSelectCheckBox.is(":checked")) {
        //                $(this).attr("checked", "checked");
        //                $("td", $(this).closest("tr")).addClass("selected");
        //            } else {
        //                $(this).removeAttr("checked");
        //                $("td", $(this).closest("tr")).removeClass("selected");
        //            }
        //        });
        //    });

            //CheckUncheck();

            //$(".cls-check").click(function () {
            //    var grid = $(this).closest("table");
            //    var HeaderSelectCheckBox = $("[id*=HeaderSelectCheckBox]", grid);
            //    if (!$(this).is(":checked")) {
            //        $("td", $(this).closest("tr")).removeClass("selected");
            //        HeaderSelectCheckBox.removeAttr("checked");
            //    } else {
            //        $("td", $(this).closest("tr")).addClass("selected");
            //        if ($(".cls-check", grid).length == $(".cls-check:checked", grid).length) {
            //            HeaderSelectCheckBox.attr("checked", "checked");
            //        }
            //    }
            //});
        });
    </script>--%>
</asp:Content>
