<%@ page title="" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Assessment_OptionalSubject, App_Web_jltk1yvh" uiculture="auto" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl"
    TagPrefix="ScreenGroup" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>


<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="OTQueueListingUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">

                <div class="dashBoardLeftCont" valign="top">
                    <div class="himssuHeader3WireBox">
                        <%--  <div class="himsBoxHeader">
                                        <div class="leftdiv">
                                        </div>
                                        <div class="himsBoxTitle">
                                            <div class="headerText">
                                            <asp:Label runat="server" ID="ScreenGroupNameLabel"></asp:Label>    
                                            </div>
                                        </div>
                                    </div>--%>
                        <table width="0px" cellpadding="0" cellspacing="0">
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="105"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>

                <div class="row whiteboxpaddingleft">
                    <div class="himssuHeader1WireBox card card-box">
                        <div class="himsBoxHeader card-head">
                            <div class="leftdiv">
                            </div>
                            <div class="himsBoxTitle">
                                <div class="headerText">
                                    <header>
                                        <i class="fas fa-filter"></i>
                                        <asp:Label ID="Label1" runat="server" Text="Optional Subject"></asp:Label>
                                    </header>
                                </div>
                            </div>
                            <div class="fRight mt-27 pagination display-flex">
                                <asp:Button ID="BackButton" runat="Server" SkinID="0" CssClass="btn btn-back fas" Text="&#xf30a;  back" OnClick="BackButton_Click" Visible="false" />
                            </div>
                        </div>
                        <cc1:TabContainer Width="100%" ID="StudentFeeTabContainer" runat="server" CssClass="ajax__myTab nav nav-tabs tabs-style-iconbox"
                            AutoPostBack="true" meta:resourcekey="StudentFeeTabContainerResource1"
                            ActiveTabIndex="0" OnActiveTabChanged="StudentFeeTabContainer_ActiveTabChanged">
                            <cc1:TabPanel Width="100%" ID="AssignOptionalSubjectTabPanel" runat="server" HeaderText="Student Optional Subject">
                                <HeaderTemplate>
                                    <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                        <li class="fancyTab">
                                            <a href="#"><i class="fas fa-tasks"></i>&nbsp;Student Optional Subject
                                            </a>
                                        </li>
                                    </ul>

                                </HeaderTemplate>
                                <ContentTemplate>
                                    <div class="himsBoxContent card-body">
                                        <asp:Panel ID="DetailPanel" runat="Server">
                                            <div class="contentHolder">
                                                <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"
                                                            AutoPostBack="true" onmouseleave="showHideTooltip()" CssClass="form-control" onmouseenter="showHideTooltip()"
                                                            OnSelectedIndexChanged="DepartmentDropDownList_SelectedIndexChanged">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>

                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="ClassLabel" Text="Class" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList ID="ClassDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                            onmouseenter="showHideTooltip()" AutoPostBack="true" OnSelectedIndexChanged="ClassDropDownList_OnSelectedIndexChanged"
                                                            SkinID="CustomWidthDropDownList" CssClass="form-control">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="DivisionLabel" Text="Division" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList ID="DivisionDropDown" runat="server" onmouseleave="showHideTooltip()"
                                                            onmouseenter="showHideTooltip()" AutoPostBack="true" OnSelectedIndexChanged="DivisionDropDown_OnSelectedIndexChanged"
                                                            SkinID="CustomWidthDropDownList" CssClass="form-control">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="Subject" Text="Subject" runat="server"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList ID="SubjectDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                            onmouseenter="showHideTooltip()" AutoPostBack="true" OnSelectedIndexChanged="SubjectDropDown_OnSelectedIndexChanged"
                                                            SkinID="CustomWidthDropDownList" CssClass="form-control">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>

                                                <div class="cBoth">
                                                </div>
                                                <div id="DivClassCheckBoxList" class="outerBox11 pTop5 col-md-6" runat="server" visible="false">
                                                    <div class="col-md-6">
                                                        <div class="select">
                                                            <asp:CheckBox ID="SubjectCheckBox" runat="server" Text="Select All" AutoPostBack="True" OnCheckedChanged="SubjectCheckBox_CheckedChanged" />
                                                            <%--      <asp:Label ID="ApplyForAllLabel" runat="server" Text="Select All" class="pLeft5"></asp:Label>--%>
                                                        </div>

                                                        <div id="ClassDivisionDiv" runat="server" class="fLeft pRight5 chck-dropdown-onclick bg-lghtgrey outerBox11 col-md-12 overflow-x-hidden padd-0">
                                                            <asp:CheckBoxList ID="SubjectCheckBoxList" runat="server">
                                                            </asp:CheckBoxList>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-6 pTop5 ">
                                                        <asp:Button ID="ApplyForSelectSubjectButton" runat="server" SkinID="0"
                                                            Text="Apply For Selected Subject" CssClass="btn-apply btn fas" OnClick="ApplyForSelectSubjectButton_Click" />
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="Label2" Text="View Mode" runat="server"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList ID="ViewModeDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                            onmouseenter="showHideTooltip()" AutoPostBack="true" OnSelectedIndexChanged="ViewModeDropDownList_SelectedIndexChanged"
                                                            SkinID="CustomWidthDropDownList" CssClass="form-control">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="alignCenter pTop5 col-md-12">

                                                    <div class="fLeft pRight5">
                                                        <asp:Button ID="ReportButton" runat="server" Text="&#xf02f; Print" SkinID="0" CssClass="btn-print btn fas" OnClick="ReportButton_Click" />
                                                        <asp:Button ID="ExportButton" Text="&#xf093; Export To Excel" SkinID="0" CssClass="btn-examcommon btn fas" runat="server" Visible="false" OnClick="ExportButton_Click"></asp:Button>
                                                    </div>
                                                </div>
                                                <div id="Div1" class="himssuHeader6WireBox col-md-12" runat="server" visible="true">
                                                    <%-- <div class="himsBoxHeader" id="GridViewPagerDiv" runat="server" visible="True">
                                            <div class="leftdiv">
                                            </div>
                                          
                                        </div>--%>
                                                    <div class="himsBoxContent">
                                                        <%--<div id="GridViewMessageDiv" class="himsBoxContentMsg" runat="server" visible="False">
                                        </div>--%>
                                                        <div id="Div4" runat="server" class="table-responsive">
                                                            <asp:GridView ID="OptionalSubjectGridview" runat="server" AutoGenerateColumns="False" EmptyDataText="No Records Found !!" AllowPaging="False" 
                                                                ViewStateMode="Enabled" DataKeyNames="AcademicId,ClassSubjectId" CssClass="table table-striped table-bordered table-hover">
                                                                <Columns>
                                                                    <asp:BoundField DataField="AcademicId" HeaderText="AcademicId" Visible="false" HeaderStyle-HorizontalAlign="Left" />
                                                                    <asp:BoundField DataField="ClassSubjectId" HeaderText="AcademicId" Visible="false" HeaderStyle-HorizontalAlign="Left" />
                                                                    <asp:BoundField DataField="Code" HeaderText="IdNo" Visible="true" HeaderStyle-HorizontalAlign="Left" />
                                                                    <asp:BoundField DataField="RollNo" HeaderText="RollNo" Visible="true" HeaderStyle-HorizontalAlign="Left" />
                                                                    <asp:BoundField DataField="FirstName" HeaderText="Name" Visible="True" HeaderStyle-HorizontalAlign="Left" />
                                                                    <asp:BoundField DataField="SubjectName" HeaderText="Subject" Visible="True" HeaderStyle-HorizontalAlign="Center" />
                                                                    <asp:TemplateField HeaderStyle-HorizontalAlign="Center">
                                                                        <HeaderTemplate>
                                                                            <itemstyle horizontalalign="Center" />
                                                                            <itemtemplate>
                                                                     <label class="rt-chkbox rt-chkbox-outline">
                                                                        <asp:CheckBox ID="HeaderSelectCheckBox" OnCheckedChanged ="HeaderSelectCheckBox_OnCheckedChanged" runat="server"  AutoPostBack="true"/>
                                                                         <span></span>
                                                                         </label>
                                                                    </itemtemplate>
                                                                        </HeaderTemplate>
                                                                        <ItemStyle HorizontalAlign="Center" />
                                                                        <ItemTemplate>
                                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                                <asp:CheckBox ID="SelectCheckBox" runat="server" Checked='<%# Eval("Selected") %>' AutoPostBack="false" />
                                                                                <span></span>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                </Columns>
                                                            </asp:GridView>

                                                            <asp:GridView ID="OptionalSubjectGridviewHorizontal" OnRowDataBound="OptionalSubjectGridviewHorizontal_DataBound" runat="server" 
                                                                AutoGenerateColumns="false" EmptyDataText="No Records Found !!" AllowPaging="False" ViewStateMode="Enabled" DataKeyNames="AcademicId,ClassSubjectId" 
                                                                CssClass="table table-striped table-bordered table-hover">
                                                                <Columns>
                                                                    <asp:BoundField DataField="Code" HeaderText="IdNo" Visible="true" HeaderStyle-HorizontalAlign="Left" />
                                                                    <asp:BoundField DataField="RollNo" HeaderText="RollNo" Visible="true" HeaderStyle-HorizontalAlign="Left" />
                                                                    <asp:BoundField DataField="StudentName" HeaderText="Name" Visible="True" HeaderStyle-HorizontalAlign="Left" />
                                                                    <asp:TemplateField HeaderStyle-HorizontalAlign="Right">
                                                                        <HeaderTemplate>
                                                                            <label class="rt-chkbox  rt-chkbox-outline">
                                                                                <asp:CheckBox ID="OptionalSubject1HeaderCheckBox" runat="server" AutoPostBack="true" OnCheckedChanged="OptionalSubject1HeaderCheckBox_CheckedChanged" />
                                                                                <span></span>
                                                                                <label id="OptionalSubject1Span" runat="server" style="color: white"></label>
                                                                            </label>
                                                                        </HeaderTemplate>
                                                                        <HeaderStyle HorizontalAlign="Right" />
                                                                        <ItemTemplate>
                                                                            <label class="rt-chkbox  rt-chkbox-outline">
                                                                                <asp:CheckBox ID="OptionalSubject1CheckBox" runat="server" />
                                                                                <span></span>
                                                                            </label>
                                                                        </ItemTemplate>
                                                                        <ItemStyle HorizontalAlign="Left" Width="10%" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderStyle-HorizontalAlign="Right">
                                                                        <HeaderTemplate>
                                                                            <label class="rt-chkbox  rt-chkbox-outline">
                                                                                <asp:CheckBox ID="OptionalSubject2HeaderCheckBox" runat="server" AutoPostBack="true" OnCheckedChanged="OptionalSubject2HeaderCheckBox_CheckedChanged"  />
                                                                                <span></span>
                                                                                <label id="OptionalSubject2Span" runat="server" style="color: white"></label>
                                                                                <label id="OptionalSubject2SpanValue" runat="server" style="color: white; display: none"></label>
                                                                            </label>
                                                                        </HeaderTemplate>
                                                                        <HeaderStyle HorizontalAlign="Right" />
                                                                        <ItemTemplate>
                                                                            <label class="rt-chkbox  rt-chkbox-outline">
                                                                                <asp:CheckBox ID="OptionalSubject2CheckBox" runat="server" />
                                                                                <span></span>
                                                                            </label>
                                                                        </ItemTemplate>
                                                                        <ItemStyle HorizontalAlign="Left" Width="10%" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderStyle-HorizontalAlign="Right">
                                                                        <HeaderTemplate>
                                                                            <label class="rt-chkbox  rt-chkbox-outline">
                                                                                <asp:CheckBox ID="OptionalSubject3HeaderCheckBox" runat="server" AutoPostBack="true" OnCheckedChanged="OptionalSubject3HeaderCheckBox_CheckedChanged" />
                                                                                <span></span>
                                                                                <label id="OptionalSubject3Span" runat="server" style="color: white"></label>
                                                                                <label id="OptionalSubject3SpanValue" runat="server" style="color: white; display: none"></label>
                                                                            </label>
                                                                        </HeaderTemplate>
                                                                        <HeaderStyle HorizontalAlign="Right" />
                                                                        <ItemTemplate>
                                                                            <label class="rt-chkbox  rt-chkbox-outline">
                                                                                <asp:CheckBox ID="OptionalSubject3CheckBox" runat="server" />
                                                                                <span></span>
                                                                            </label>
                                                                        </ItemTemplate>
                                                                        <ItemStyle HorizontalAlign="Left" Width="10%" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderStyle-HorizontalAlign="Right">
                                                                        <HeaderTemplate>
                                                                            <label class="rt-chkbox  rt-chkbox-outline">
                                                                                <asp:CheckBox ID="OptionalSubject4HeaderCheckBox" runat="server"  AutoPostBack="true" OnCheckedChanged="OptionalSubject4HeaderCheckBox_CheckedChanged" />
                                                                                <span></span>
                                                                                <label id="OptionalSubject4Span" runat="server" style="color: white"></label>
                                                                                <label id="OptionalSubject4SpanValue" runat="server" style="color: white; display: none"></label>
                                                                            </label>
                                                                        </HeaderTemplate>
                                                                        <HeaderStyle HorizontalAlign="Right" />
                                                                        <ItemTemplate>
                                                                            <label class="rt-chkbox  rt-chkbox-outline">
                                                                                <asp:CheckBox ID="OptionalSubject4CheckBox" runat="server" />
                                                                                <span></span>
                                                                            </label>
                                                                        </ItemTemplate>
                                                                        <ItemStyle HorizontalAlign="Left" Width="10%" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderStyle-HorizontalAlign="Right">
                                                                        <HeaderTemplate>
                                                                            <label class="rt-chkbox  rt-chkbox-outline">
                                                                                <asp:CheckBox ID="OptionalSubject5HeaderCheckBox" runat="server" AutoPostBack="true" OnCheckedChanged="OptionalSubject5HeaderCheckBox_CheckedChanged" />
                                                                                <span></span>
                                                                                <label id="OptionalSubject5Span" runat="server" style="color: white"></label>
                                                                                <label id="OptionalSubject5SpanValue" runat="server" style="color: white; display: none"></label>
                                                                            </label>
                                                                        </HeaderTemplate>
                                                                        <HeaderStyle HorizontalAlign="Right" />
                                                                        <ItemTemplate>
                                                                            <label class="rt-chkbox  rt-chkbox-outline">
                                                                                <asp:CheckBox ID="OptionalSubject5CheckBox" runat="server" />
                                                                                <span></span>
                                                                            </label>
                                                                        </ItemTemplate>
                                                                        <ItemStyle HorizontalAlign="Left" Width="10%" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderStyle-HorizontalAlign="Right">
                                                                        <HeaderTemplate>
                                                                            <label class="rt-chkbox  rt-chkbox-outline">
                                                                                <asp:CheckBox ID="OptionalSubject6HeaderCheckBox" runat="server" AutoPostBack="true" OnCheckedChanged="OptionalSubject6HeaderCheckBox_CheckedChanged" />
                                                                                <span></span>
                                                                                <label id="OptionalSubject6Span" runat="server" style="color: white"></label>
                                                                                <label id="OptionalSubject6SpanValue" runat="server" style="color: white; display: none"></label>
                                                                            </label>
                                                                        </HeaderTemplate>
                                                                        <HeaderStyle HorizontalAlign="Right" />
                                                                        <ItemTemplate>
                                                                            <label class="rt-chkbox  rt-chkbox-outline">
                                                                                <asp:CheckBox ID="OptionalSubject6CheckBox" runat="server" />
                                                                                <span></span>
                                                                            </label>
                                                                        </ItemTemplate>
                                                                        <ItemStyle HorizontalAlign="Left" Width="10%" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderStyle-HorizontalAlign="Right">
                                                                        <HeaderTemplate>
                                                                            <label class="rt-chkbox  rt-chkbox-outline">
                                                                                <asp:CheckBox ID="OptionalSubject7HeaderCheckBox" runat="server"  AutoPostBack="true" OnCheckedChanged="OptionalSubject7HeaderCheckBox_CheckedChanged" />
                                                                                <span></span>
                                                                                <label id="OptionalSubject7Span" runat="server" style="color: white"></label>
                                                                                <label id="OptionalSubject7SpanValue" runat="server" style="color: white; display: none"></label>
                                                                            </label>
                                                                        </HeaderTemplate>
                                                                        <HeaderStyle HorizontalAlign="Right" />
                                                                        <ItemTemplate>
                                                                            <label class="rt-chkbox  rt-chkbox-outline">
                                                                                <asp:CheckBox ID="OptionalSubject7CheckBox" runat="server" />
                                                                                <span></span>
                                                                            </label>
                                                                        </ItemTemplate>
                                                                        <ItemStyle HorizontalAlign="Left" Width="10%" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderStyle-HorizontalAlign="Right">
                                                                        <HeaderTemplate>
                                                                            <label class="rt-chkbox  rt-chkbox-outline">
                                                                                <asp:CheckBox ID="OptionalSubject8HeaderCheckBox" runat="server" AutoPostBack="true" OnCheckedChanged="OptionalSubject8HeaderCheckBox_CheckedChanged"  />
                                                                                <span></span>
                                                                                <label id="OptionalSubject8Span" runat="server" style="color: white"></label>
                                                                                <label id="OptionalSubject8SpanValue" runat="server" style="color: white; display: none"></label>
                                                                            </label>
                                                                        </HeaderTemplate>
                                                                        <HeaderStyle HorizontalAlign="Right" />
                                                                        <ItemTemplate>
                                                                            <label class="rt-chkbox  rt-chkbox-outline">
                                                                                <asp:CheckBox ID="OptionalSubject8CheckBox" runat="server" />
                                                                                <span></span>
                                                                            </label>
                                                                        </ItemTemplate>
                                                                        <ItemStyle HorizontalAlign="Left" Width="10%" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderStyle-HorizontalAlign="Right">
                                                                        <HeaderTemplate>
                                                                            <label class="rt-chkbox  rt-chkbox-outline">
                                                                                <asp:CheckBox ID="OptionalSubject9HeaderCheckBox" runat="server"  AutoPostBack="true" OnCheckedChanged="OptionalSubject9HeaderCheckBox_CheckedChanged" />
                                                                                <span></span>
                                                                                <label id="OptionalSubject9Span" runat="server" style="color: white"></label>
                                                                                <label id="OptionalSubject9SpanValue" runat="server" style="color: white; display: none"></label>
                                                                            </label>
                                                                        </HeaderTemplate>
                                                                        <HeaderStyle HorizontalAlign="Right" />
                                                                        <ItemTemplate>
                                                                            <label class="rt-chkbox  rt-chkbox-outline">
                                                                                <asp:CheckBox ID="OptionalSubject9CheckBox" runat="server" />
                                                                                <span></span>
                                                                            </label>
                                                                        </ItemTemplate>
                                                                        <ItemStyle HorizontalAlign="Left" Width="10%" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderStyle-HorizontalAlign="Right">
                                                                        <HeaderTemplate>
                                                                            <label class="rt-chkbox  rt-chkbox-outline">
                                                                                <asp:CheckBox ID="OptionalSubject10HeaderCheckBox" runat="server" AutoPostBack="true" OnCheckedChanged="OptionalSubject10HeaderCheckBox_CheckedChanged" />
                                                                                <span></span>
                                                                                <label id="OptionalSubject10Span" runat="server" style="color: white"></label>
                                                                                <label id="OptionalSubject10SpanValue" runat="server" style="color: white; display: none"></label>
                                                                            </label>
                                                                        </HeaderTemplate>
                                                                        <HeaderStyle HorizontalAlign="Right" />
                                                                        <ItemTemplate>
                                                                            <label class="rt-chkbox  rt-chkbox-outline">
                                                                                <asp:CheckBox ID="OptionalSubject10CheckBox" runat="server" />
                                                                                <span></span>
                                                                            </label>
                                                                        </ItemTemplate>
                                                                        <ItemStyle HorizontalAlign="Left" Width="10%" />
                                                                    </asp:TemplateField>
                                                                </Columns>
                                                            </asp:GridView>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </asp:Panel>
                                    </div>
                                </ContentTemplate>
                            </cc1:TabPanel>
                            <cc1:TabPanel Width="100%" ID="StudentPreOptionalSubjectTabPanel" runat="server" HeaderText="Student Pre Optional Subject">
                                <HeaderTemplate>
                                    <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                        <li class="fancyTab">
                                            <a href="#"><i class="fas fa-tasks"></i>&nbsp;Student Pre Optional Subject
                                            </a>
                                        </li>
                                    </ul>
                                </HeaderTemplate>
                                <ContentTemplate>
                                    <div class="himsBoxContent card-body">
                                        <asp:Panel ID="PreOptionalSubjectPanel" runat="Server">
                                            <div class="contentHolder">
                                                <div class="col-md-12 bg-lghtgrey radiobtn">
                                                    <asp:RadioButtonList ID="SourceTypeRadioButtonList" runat="server" RepeatDirection="Horizontal"
                                                        OnSelectedIndexChanged="SourceTypeRadioButtonList_SelectedIndexChanged" AutoPostBack="true">
                                                        <asp:ListItem Text="Admission" Value="1" Selected="True"></asp:ListItem>
                                                        <asp:ListItem Text="Online Student Registration" Value="2"></asp:ListItem>
                                                    </asp:RadioButtonList>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="DepartmentPreLabel" runat="server" Text="Department"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList runat="server" ID="DepartmentPreDropDownList" SkinID="CustomWidthDropDownList"
                                                            AutoPostBack="true" onmouseleave="showHideTooltip()" CssClass="form-control" onmouseenter="showHideTooltip()"
                                                            OnSelectedIndexChanged="DepartmentPreDropDownList_SelectedIndexChanged">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>

                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="ClassPreLabel" Text="Class" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList ID="ClassPreDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                            onmouseenter="showHideTooltip()" AutoPostBack="true" OnSelectedIndexChanged="ClassPreDropDownList_SelectedIndexChanged"
                                                            SkinID="CustomWidthDropDownList" CssClass="form-control">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="DivisionPreLabel" Text="Division" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList ID="DivisionPreDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                            onmouseenter="showHideTooltip()" AutoPostBack="true" OnSelectedIndexChanged="DivisionPreDropDownList_SelectedIndexChanged"
                                                            SkinID="CustomWidthDropDownList" CssClass="form-control">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="SubjectPreLabel" Text="Pre optional Subject" runat="server"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList ID="SubjectPreDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                            onmouseenter="showHideTooltip()"
                                                            SkinID="CustomWidthDropDownList" CssClass="form-control">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="cBoth">
                                                </div>
                                                <div class="alignCenter pTop5">
                                                    <asp:Button ID="SearchButton" runat="Server"
                                                        SkinID="0" CssClass="btn-search btn fas" Text="&#xf002; Search" OnClick="SearchButton_Click" />
                                                    <asp:Button ID="ResetButton" runat="server" Text="&#xf0e2; Reset" CssClass="btn-reset btn fas" SkinID="0" OnClick="ResetButton_Click" />
                                                </div>
                                                <div class="col-md-12">
                                                    <div id="Div2" runat="server" class="table-responsive">
                                                        <asp:GridView ID="PreOptionalSubjectGridView"
                                                            runat="server"
                                                            AutoGenerateColumns="False"
                                                            EmptyDataText="No Records Found !!"
                                                            AllowPaging="False" ViewStateMode="Enabled"
                                                            DataKeyNames="AcademicId,ClassSubjectId"
                                                            CssClass="table table-striped table-bordered table-hover"
                                                            OnRowDataBound="PreOptionalSubjectGridView_RowDataBound">
                                                            <Columns>
                                                                <asp:BoundField DataField="Code" HeaderText="IdNo" Visible="true" HeaderStyle-HorizontalAlign="Left" />
                                                                <asp:BoundField DataField="RollNo" HeaderText="RollNo" Visible="true" HeaderStyle-HorizontalAlign="Left" />
                                                                <asp:BoundField DataField="FirstName" HeaderText="Name" Visible="True" HeaderStyle-HorizontalAlign="Left" />
                                                                <asp:TemplateField HeaderStyle-HorizontalAlign="Right">
                                                                    <HeaderTemplate>
                                                                        <label class="rt-chkbox  rt-chkbox-outline">
                                                                            <asp:CheckBox ID="Subject1HeaderCheckBox" AutoPostBack="true" runat="server" OnCheckedChanged="Subject1HeaderCheckBox_CheckedChanged" />
                                                                            <span></span>
                                                                            <label id="Subject1Span" runat="server" style="color: white"></label>
                                                                        </label>
                                                                    </HeaderTemplate>
                                                                    <HeaderStyle HorizontalAlign="Right" />
                                                                    <ItemTemplate>
                                                                        <label class="rt-chkbox  rt-chkbox-outline">
                                                                            <asp:CheckBox ID="Subject1CheckBox" runat="server" />
                                                                            <span></span>
                                                                        </label>
                                                                    </ItemTemplate>
                                                                    <ItemStyle HorizontalAlign="Left" Width="10%" />
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderStyle-HorizontalAlign="Right">
                                                                    <HeaderTemplate>
                                                                        <label class="rt-chkbox  rt-chkbox-outline">
                                                                            <asp:CheckBox ID="Subject2HeaderCheckBox" AutoPostBack="true" runat="server" OnCheckedChanged="Subject2HeaderCheckBox_CheckedChanged" />
                                                                            <span></span>
                                                                            <label id="Subject2Span" runat="server" style="color: white"></label>
                                                                            <label id="Subject2SpanValue" runat="server" style="color: white; display: none"></label>
                                                                        </label>
                                                                    </HeaderTemplate>
                                                                    <HeaderStyle HorizontalAlign="Right" />
                                                                    <ItemTemplate>
                                                                        <label class="rt-chkbox  rt-chkbox-outline">
                                                                            <asp:CheckBox ID="Subject2CheckBox" runat="server" />
                                                                            <span></span>
                                                                        </label>
                                                                    </ItemTemplate>
                                                                    <ItemStyle HorizontalAlign="Left" Width="10%" />
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderStyle-HorizontalAlign="Right">
                                                                    <HeaderTemplate>
                                                                        <label class="rt-chkbox  rt-chkbox-outline">
                                                                            <asp:CheckBox ID="Subject3HeaderCheckBox" AutoPostBack="true" runat="server" OnCheckedChanged="Subject3HeaderCheckBox_CheckedChanged" />
                                                                            <span></span>
                                                                            <label id="Subject3Span" runat="server" style="color: white"></label>
                                                                            <label id="Subject3SpanValue" runat="server" style="color: white; display: none"></label>
                                                                        </label>
                                                                    </HeaderTemplate>
                                                                    <HeaderStyle HorizontalAlign="Right" />
                                                                    <ItemTemplate>
                                                                        <label class="rt-chkbox  rt-chkbox-outline">
                                                                            <asp:CheckBox ID="Subject3CheckBox" runat="server" />
                                                                            <span></span>
                                                                        </label>
                                                                    </ItemTemplate>
                                                                    <ItemStyle HorizontalAlign="Left" Width="10%" />
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderStyle-HorizontalAlign="Right">
                                                                    <HeaderTemplate>
                                                                        <label class="rt-chkbox  rt-chkbox-outline">
                                                                            <asp:CheckBox ID="Subject4HeaderCheckBox" AutoPostBack="true" runat="server" OnCheckedChanged="Subject4HeaderCheckBox_CheckedChanged" />
                                                                            <span></span>
                                                                            <label id="Subject4Span" runat="server" style="color: white"></label>
                                                                            <label id="Subject4SpanValue" runat="server" style="color: white; display: none"></label>
                                                                        </label>
                                                                    </HeaderTemplate>
                                                                    <HeaderStyle HorizontalAlign="Right" />
                                                                    <ItemTemplate>
                                                                        <label class="rt-chkbox  rt-chkbox-outline">
                                                                            <asp:CheckBox ID="Subject4CheckBox" runat="server" />
                                                                            <span></span>
                                                                        </label>
                                                                    </ItemTemplate>
                                                                    <ItemStyle HorizontalAlign="Left" Width="10%" />
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderStyle-HorizontalAlign="Right">
                                                                    <HeaderTemplate>
                                                                        <label class="rt-chkbox  rt-chkbox-outline">
                                                                            <asp:CheckBox ID="Subject5HeaderCheckBox" AutoPostBack="true" runat="server" OnCheckedChanged="Subject5HeaderCheckBox_CheckedChanged" />
                                                                            <span></span>
                                                                            <label id="Subject5Span" runat="server" style="color: white"></label>
                                                                            <label id="Subject5SpanValue" runat="server" style="color: white; display: none"></label>
                                                                        </label>
                                                                    </HeaderTemplate>
                                                                    <HeaderStyle HorizontalAlign="Right" />
                                                                    <ItemTemplate>
                                                                        <label class="rt-chkbox  rt-chkbox-outline">
                                                                            <asp:CheckBox ID="Subject5CheckBox" runat="server" />
                                                                            <span></span>
                                                                        </label>
                                                                    </ItemTemplate>
                                                                    <ItemStyle HorizontalAlign="Left" Width="10%" />
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderStyle-HorizontalAlign="Right">
                                                                    <HeaderTemplate>
                                                                        <label class="rt-chkbox  rt-chkbox-outline">
                                                                            <asp:CheckBox ID="Subject6HeaderCheckBox" AutoPostBack="true" runat="server" OnCheckedChanged="Subject6HeaderCheckBox_CheckedChanged" />
                                                                            <span></span>
                                                                            <label id="Subject6Span" runat="server" style="color: white"></label>
                                                                            <label id="Subject6SpanValue" runat="server" style="color: white; display: none"></label>
                                                                        </label>
                                                                    </HeaderTemplate>
                                                                    <HeaderStyle HorizontalAlign="Right" />
                                                                    <ItemTemplate>
                                                                        <label class="rt-chkbox  rt-chkbox-outline">
                                                                            <asp:CheckBox ID="Subject6CheckBox" runat="server" />
                                                                            <span></span>
                                                                        </label>
                                                                    </ItemTemplate>
                                                                    <ItemStyle HorizontalAlign="Left" Width="10%" />
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderStyle-HorizontalAlign="Right">
                                                                    <HeaderTemplate>
                                                                        <label class="rt-chkbox  rt-chkbox-outline">
                                                                            <asp:CheckBox ID="Subject7HeaderCheckBox" AutoPostBack="true" runat="server" OnCheckedChanged="Subject7HeaderCheckBox_CheckedChanged" />
                                                                            <span></span>
                                                                            <label id="Subject7Span" runat="server" style="color: white"></label>
                                                                            <label id="Subject7SpanValue" runat="server" style="color: white; display: none"></label>
                                                                        </label>
                                                                    </HeaderTemplate>
                                                                    <HeaderStyle HorizontalAlign="Right" />
                                                                    <ItemTemplate>
                                                                        <label class="rt-chkbox  rt-chkbox-outline">
                                                                            <asp:CheckBox ID="Subject7CheckBox" runat="server" />
                                                                            <span></span>
                                                                        </label>
                                                                    </ItemTemplate>
                                                                    <ItemStyle HorizontalAlign="Left" Width="10%" />
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderStyle-HorizontalAlign="Right">
                                                                    <HeaderTemplate>
                                                                        <label class="rt-chkbox  rt-chkbox-outline">
                                                                            <asp:CheckBox ID="Subject8HeaderCheckBox" AutoPostBack="true" runat="server" OnCheckedChanged="Subject8HeaderCheckBox_CheckedChanged" />
                                                                            <span></span>
                                                                            <label id="Subject8Span" runat="server" style="color: white"></label>
                                                                            <label id="Subject8SpanValue" runat="server" style="color: white; display: none"></label>
                                                                        </label>
                                                                    </HeaderTemplate>
                                                                    <HeaderStyle HorizontalAlign="Right" />
                                                                    <ItemTemplate>
                                                                        <label class="rt-chkbox  rt-chkbox-outline">
                                                                            <asp:CheckBox ID="Subject8CheckBox" runat="server" />
                                                                            <span></span>
                                                                        </label>
                                                                    </ItemTemplate>
                                                                    <ItemStyle HorizontalAlign="Left" Width="10%" />
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderStyle-HorizontalAlign="Right">
                                                                    <HeaderTemplate>
                                                                        <label class="rt-chkbox  rt-chkbox-outline">
                                                                            <asp:CheckBox ID="Subject9HeaderCheckBox" AutoPostBack="true" runat="server" OnCheckedChanged="Subject9HeaderCheckBox_CheckedChanged" />
                                                                            <span></span>
                                                                            <label id="Subject9Span" runat="server" style="color: white"></label>
                                                                            <label id="Subject9SpanValue" runat="server" style="color: white; display: none"></label>
                                                                        </label>
                                                                    </HeaderTemplate>
                                                                    <HeaderStyle HorizontalAlign="Right" />
                                                                    <ItemTemplate>
                                                                        <label class="rt-chkbox  rt-chkbox-outline">
                                                                            <asp:CheckBox ID="Subject9CheckBox" runat="server" />
                                                                            <span></span>
                                                                        </label>
                                                                    </ItemTemplate>
                                                                    <ItemStyle HorizontalAlign="Left" Width="10%" />
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderStyle-HorizontalAlign="Right">
                                                                    <HeaderTemplate>
                                                                        <label class="rt-chkbox  rt-chkbox-outline">
                                                                            <asp:CheckBox ID="Subject10HeaderCheckBox" AutoPostBack="true" runat="server" OnCheckedChanged="Subject10HeaderCheckBox_CheckedChanged" />
                                                                            <span></span>
                                                                            <label id="Subject10Span" runat="server" style="color: white"></label>
                                                                            <label id="Subject10SpanValue" runat="server" style="color: white; display: none"></label>
                                                                        </label>
                                                                    </HeaderTemplate>
                                                                    <HeaderStyle HorizontalAlign="Right" />
                                                                    <ItemTemplate>
                                                                        <label class="rt-chkbox  rt-chkbox-outline">
                                                                            <asp:CheckBox ID="Subject10CheckBox" runat="server" />
                                                                            <span></span>
                                                                        </label>
                                                                    </ItemTemplate>
                                                                    <ItemStyle HorizontalAlign="Left" Width="10%" />
                                                                </asp:TemplateField>
                                                            </Columns>
                                                        </asp:GridView>
                                                    </div>
                                                </div>
                                            </div>
                                        </asp:Panel>
                                    </div>
                                </ContentTemplate>
                            </cc1:TabPanel>
                        </cc1:TabContainer>
                    </div>
                </div>
            </div>

        </ContentTemplate>
    </asp:UpdatePanel>
    <%--   <script data-main="../../../JavaScript/rjs/encrypt/assign-organization-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/assign-organization")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
