<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Hostel_HostelStudentSearchList, App_Web_5m2qkb20" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl" TagPrefix="DPC" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl" TagPrefix="Date" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager" TagPrefix="uc1" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/Common/StudentSearch/StudentSearch.ascx" TagName="StudentSearch" TagPrefix="Std" %>
<%@ Register Src="~/UserControls/Common/Hostel/HostelDetailBoxControl.ascx" TagName="HostelControl" TagPrefix="Hostel" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="ResonMasterUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">
                <Std:StudentSearch ID="StudentSearch" Visible="false" runat="server" />

                <div class="dashBoardLeftCont">
                    <div class="himssuHeader3WireBox">
                        <table>
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="175"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="whiteboxpaddingleft row">
                    <Hostel:HostelControl ID="HostelUserControl" runat="server" Visible="true" />
                    <div class="himssuHeader5WireBox card card-box" id="SearchDiv" runat="server">
                        <div class="himsBoxHeader card-head">
                            <asp:Panel ID="Panel1" runat="server">
                                <div class="leftdiv">
                                </div>
                                <div class="himsBoxTitle">
                                    <div class="headerText">
                                        <header>
                                            <i class="fas fa-search"></i>
                                            <asp:Label ID="Label3" runat="server" Text="Search"></asp:Label>
                                        </header>
                                    </div>
                                    <div class="fRight">
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                        <div class="himsBoxContent card-body">
                            <asp:Panel ID="DetailPanel" runat="Server">
                                <div class="contentHolder">
                                    <asp:Panel ID="SearchCriteriaPanel" runat="Server">
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="OrganizationLabel2" runat="server" Text="Organization"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList runat="server" ID="OrganizationDropDownList" SkinID="CustomWidthDropDownList"
                                                    onmouseleave="showHideTooltip()" CssClass="form-control" onmouseenter="showHideTooltip()" AutoPostBack="true"
                                                    OnSelectedIndexChanged="OrganizationDropDownList_SelectedIndexChanged">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="BuildingLabel" runat="server" Text="Building"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList runat="server" ID="BuildingDropDownList" 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="RoomLabel4" runat="server" Text="Room"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList runat="server" ID="RoomDropDownList2" SkinID="CustomWidthDropDownList"
                                                    onmouseleave="showHideTooltip()" CssClass="form-control" onmouseenter="showHideTooltip()">
                                                </asp:DropDownList>
                                            </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"
                                                    onmouseleave="showHideTooltip()" CssClass="form-control" onmouseenter="showHideTooltip()"
                                                    AutoPostBack="true" OnTextChanged="DepartmentDropDownList_TextChanged">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="ClassLable" runat="server" Text="Class"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList runat="server" ID="ClassDropDownList" SkinID="CustomWidthDropDownList"
                                                    onmouseleave="showHideTooltip()" CssClass="form-control" onmouseenter="showHideTooltip()"
                                                    OnSelectedIndexChanged="ClassDropDownList_SelectedIndexChange" AutoPostBack="true">
                                                </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="DivisionStatusDropDownList1" SkinID="CustomWidthDropDownList"
                                                    onmouseleave="showHideTooltip()" CssClass="form-control" onmouseenter="showHideTooltip()"
                                                    AutoPostBack="false">
                                                </asp:DropDownList>
                                            </div>
                                        </div>

                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="StudentSearchIdNoLabel" runat="server" Text="Student ID No"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5 display-flex">
                                                <asp:TextBox ID="StudentSearchIdNoTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    SkinID="CustomWidthTextBox" CssClass="form-control" runat="server">
                                                </asp:TextBox>
                                                <asp:ImageButton SkinID="FindImage" ToolTip="Student Search" ID="StudentSearchIdNoImageButton"
                                                    ImageUrl="~/Images/icons/icon_find.gif" runat="server" OnClick="StudentIdNoImageButton_Click" />
                                                <asp:HiddenField ID="StudentSearchIdHiddenField" runat="server" />
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="StudentSearchNameLable" runat="server" Text="Name"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="StudentSearchNameTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    SkinID="CustomWidthTextBox" runat="server" MaxLength="100"> </asp:TextBox>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SurnameLabel" runat="server" Text="SurName"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="SurnameTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    SkinID="CustomWidthTextBox" runat="server" MaxLength="100"> </asp:TextBox>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3" id="SuidDiv" runat="server">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SUIDLabel" runat="server" Text="SUID"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="SUIDTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    SkinID="CustomWidthTextBox" runat="server"> </asp:TextBox>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop15 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="Label2" runat="server" Text=""></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:CheckBox ID="ShowWithPhotoCheckBox" runat="server" Text="Show With Photo" class="pLeft5" AutoPostBack="false" />
                                            </div>
                                        </div>
                                        <div class="outerBox pTop15 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="Label4" runat="server" Text=""></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:CheckBox ID="SelfPermissionCheckBox" Text="Self Permission" runat="server" class="pLeft5" />
                                            </div>
                                        </div>

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

                                        <div class="outerBox pTop15 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:CheckBox ID="Mobile_CheckBox" runat="server" Text="Send Alert" OnCheckedChanged="Mobile_CheckBox_CheckedChanged" AutoPostBack="true" />
                                            </div>
                                        </div>

                                        <div runat="server" id="DivMobile" visible="false">
                                            <div class="outerBox pTop15 col-md-9">
                                                <div class="fLeft pRight5 display-flex">
                                                    <asp:CheckBox ID="SMSChckBox" runat="server" Text="SMS" />
                                                    <asp:CheckBox ID="MailCheckBox" runat="server" Text="Mail" />
                                                    <asp:CheckBox ID="MobileCheckBox" runat="server" Text="Mobile App" />
                                                    <asp:HiddenField runat="server" ID="SendButtonHiddenField" />
                                                </div>
                                            </div>



                                            <div class="outerBox pTop5 col-md-12">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="SubjectLabel" runat="server" Text="Subject" SkinID="MandatoryLabel"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="SubjectTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        SkinID="CustomWidthTextBox" runat="server" MaxLength="1000"></asp:TextBox>
                                                </div>
                                            </div>


                                            <div class="outerBox11 pTop5 col-md-12">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="MessageLabel" runat="server" Text="Message" SkinID="MandatoryLabel"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="MessageTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        SkinID="MultilineTextBox" runat="server" MaxLength="1000"
                                                        TextMode="MultiLine" OnTextChanged="MessageTextBox_TextChanged" AutoPostBack="True"></asp:TextBox>
                                                    <div id="CharCountDiv" runat="server" class="col-md-12">
                                                        <asp:Label ID="ForCharLabel" runat="server" Text="Number Of Character :"></asp:Label>
                                                        <asp:Label ID="NumberOfCharLabel" runat="server" Font-Bold="True"></asp:Label>
                                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                                                        <asp:Label ID="ForMessageLabel" runat="server" Text="Number Of Message :"></asp:Label>
                                                        <asp:Label ID="NumberOfMessageLabel" runat="server" Font-Bold="True"></asp:Label>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-md-12 text-center pb15 pTop5">
                                                <asp:Button ID="SendButton" runat="server" Text="&#xf1d8; Send" SkinID="0"
                                                    OnClick="SendButton_Click" class="btn-send btn fas" />
                                            </div>
                                        </div>


                                        <div class="alignCenter pTop5 col-md-12">
                                            <asp:Button ID="SearchButton" Text="&#xf002; Search" runat="Server" OnClick="SearchButton_Click" SkinID="0" class="btn-search btn fas" />
                                            <asp:Button ID="ResetButton" runat="server" Text="&#xf0e2; Reset" OnClick="ResetButton_Click" SkinID="0" class="btn-reset btn fas" />
                                            <asp:Button ID="ExportButton" runat="server" Text="&#xf093; Export" OnClick="ExportButton_Click" SkinID="0" class="btn-report btn fas" />
                                            <asp:Button ID="ChangeRoomButton" runat="server" Text="&#xf362; Change Room" SkinID="0"
                                                OnClick="ChangeRoomButton_Click" CssClass="btn btn-assign fas" />
                                            <asp:Button ID="VacantButton" runat="server" Text="&#xf06a; Vacant" SkinID="0"
                                                OnClick="VacantButton_Click" class="btn btn-vacant fas" />
                                            <asp:Button ID="AllowPermissionButton" runat="server" Text="&#xf00c; Allow Permission" OnClick="AllowPermissionButton_Click" SkinID="0" CssClass="btn btn-assign fas" />
                                            <asp:Button ID="CancelPermissionButton" runat="server" Text="&#xf00d; Cancel Permission" SkinID="0" OnClick="CancelPermissionButton_Click" class="btn btn-assign fas" />

                                        </div>

                                    </asp:Panel>
                                    <div class="himssuHeader7WireBox pTop10 col-md-12" runat="server">
                                        <div id="ReasonMasterDetailDiv" visible="false" runat="server">

                                            <td class="himsBoxHeader">
                                                <div class="leftdiv">
                                                </div>
                                                <%--   <div class="himsBoxTitle">
                                                                <div class="headerText">
                                                                    <asp:Label ID="Label1" runat="server" Text="" Font-Bold="true"></asp:Label>
                                                                </div>
                                                            </div>--%>
                                                <div style="margin-top: 0px;">
                                                    <table>
                                                        <tr>
                                                            <td style="width: 49%">
                                                                <asp:Label ID="RecordsPerPage" Text="Records per Page : " runat="server" />
                                                                <asp:DropDownList ID="AddRowsToGridDropDownList" SkinID="CustomWidthDropDownList" Width="60px" runat="server"
                                                                    AutoPostBack="true" OnSelectedIndexChanged="AddRowsToGridDropDownList_SelectedIndexChanged">
                                                                    <asp:ListItem Text="50" Value="50" Selected="True"></asp:ListItem>
                                                                    <asp:ListItem Text="100" Value="100"></asp:ListItem>
                                                                    <asp:ListItem Text="150" Value="150"></asp:ListItem>
                                                                    <asp:ListItem Text="200" Value="200"></asp:ListItem>
                                                                </asp:DropDownList>
                                                            </td>
                                                            <td>
                                                                <uc1:GridViewPager ID="HostelStudentListGridView_GridViewPager" runat="server" OnFirstRecordClick="HostelStudentListGridView_GridViewPager_FirstRecordClick"
                                                                    OnLastRecordClick="HostelStudentListGridView_GridViewPager_LastRecordClick" OnNextRecordClick="HostelStudentListGridView_GridViewPager_NextRecordClick"
                                                                    OnPrevRecordClick="HostelStudentListGridView_GridViewPager_PrevRecordClick" OnTextBoxValueChange="HostelStudentListGridView_GridViewPager_TextBoxValueChange"
                                                                    ParentGridView="HostelStudentListGridView" />
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </div>

                                        </div>
                                        <div class="himsBoxContent pTop5">
                                            <asp:UpdatePanel ID="MenuPlanDetailUpdatePanel" runat="server" UpdateMode="Always">
                                                <ContentTemplate>
                                                    <div id="Div5" runat="server" visible="false" class="table-responsive">
                                                        <asp:GridView ID="HostelStudentListGridView" ClientIDMode="Static" runat="server" AutoGenerateColumns="False"
                                                            OnRowDataBound="HostelStudentListGridView_RowDataBound" CssClass="table table-striped table-bordered table-hover" OnPageIndexChanging="HostelStudentListGridView_PageIndexChanging"
                                                            AllowPaging="true" SkinID="" ShowHeader="True" PagerSettings-Visible="false" PageSize="50"
                                                            DataKeyNames="SUID,StudentId,OrgId,StudentCode,EMail,RoomId,BatchId" EmptyDataText="No records Found !!!">
                                                            <Columns>
                                                                <asp:TemplateField HeaderText="Select" HeaderStyle-HorizontalAlign="Left"
                                                                    ItemStyle-Wrap="true">
                                                                    <HeaderTemplate>
                                                                        <label class="rt-chkbox rt-chkbox-outline">
                                                                            <asp:CheckBox ID="HeaderSelectCheckBox" runat="server" Enabled="true" onclick="CheckAll(this);" />
                                                                            <span></span>
                                                                        </label>
                                                                    </HeaderTemplate>
                                                                    <ItemStyle HorizontalAlign="Center" />
                                                                    <ItemTemplate>
                                                                        <label class="rt-chkbox rt-chkbox-outline">
                                                                            <asp:CheckBox ID="SelectCheckBox" runat="server" />
                                                                            <span></span>
                                                                        </label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Select" ItemStyle-Width="5%" HeaderStyle-HorizontalAlign="Left"
                                                                    ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <asp:LinkButton ID="SUIDLinkButton" runat="server" OnClick="SUIDLinkButton_Click" Text="Select"
                                                                            CausesValidation="false">
                                                                        </asp:LinkButton>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Profile" ItemStyle-Width="4%" HeaderStyle-HorizontalAlign="Left"
                                                                    ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <asp:LinkButton ID="ProfileLinkButton" runat="server" OnClick="ProfileLinkButton_Click" Text="Profile"
                                                                            CausesValidation="false">
                                                                        </asp:LinkButton>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="SUID" ItemStyle-Width="8%" SortExpression="SUID" HeaderStyle-HorizontalAlign="Left"
                                                                    ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="SuidLable" runat="server" Text='<%# Bind("SUID") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Organization" ItemStyle-Width="20%" SortExpression="Organization" HeaderStyle-HorizontalAlign="Left"
                                                                    ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="OrganizationLable" runat="server" Text='<%# Bind("Organization") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField ItemStyle-Width="10%" SortExpression="StudentCode" HeaderStyle-HorizontalAlign="Left"
                                                                    ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="StudentCodeLable" runat="server" Text='<%# Bind("StudentCode") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Department Name" ItemStyle-Width="5%" SortExpression="DepartmentName" HeaderStyle-HorizontalAlign="Left"
                                                                    ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="DepartmentLable" runat="server" Text='<%# Bind("Department") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Class/Division" ItemStyle-Width="5%" SortExpression="Class" HeaderStyle-HorizontalAlign="Left"
                                                                    ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="ClassNameLable" runat="server" Text='<%# Bind("Class") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Student Name" ItemStyle-Width="14%" SortExpression="StudentName" HeaderStyle-HorizontalAlign="Left"
                                                                    ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="StudentNameLable" runat="server" Text='<%# Bind("StudentName") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Contact No" ItemStyle-Width="5%" SortExpression="ContactNo" HeaderStyle-HorizontalAlign="Left"
                                                                    ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="ContactNoLable" runat="server" Text='<%# Bind("ContactNo") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="City" ItemStyle-Width="8%" SortExpression="City" HeaderStyle-HorizontalAlign="Left"
                                                                    ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="CityLable" runat="server" Text='<%# Bind("City") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Bed Number" ItemStyle-Width="5%" SortExpression="BedNumber" HeaderStyle-HorizontalAlign="Left"
                                                                    ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="BedNumberLable" runat="server" Text='<%# Bind("BedNumber") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Room No" ItemStyle-Width="5%" SortExpression="Room" HeaderStyle-HorizontalAlign="Left"
                                                                    ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="RoomLable" runat="server" Text='<%# Bind("Room") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Asset" ItemStyle-Width="24%" SortExpression="AssetNumber" HeaderStyle-HorizontalAlign="Left"
                                                                    ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="AssetNumberLable" runat="server" Text='<%# Bind("AssetNumber") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Self Permission" ItemStyle-Width="24%" SortExpression="SelfPermissionToGoOut" HeaderStyle-HorizontalAlign="Left"
                                                                    ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="SelfpermissionLable" runat="server" Text='<%# (Boolean.Parse(Eval("SelfPermissionToGoOut").ToString())) ? "Yes" : "No" %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Photo" ItemStyle-Width="190px" HeaderStyle-HorizontalAlign="Center"
                                                                    ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <asp:Image ID="StudentPhoto" Height="60px" Width="60px" runat="server" ImageUrl='<%# ("data:image/jpg;base64,"+Convert.ToBase64String((byte[])Eval("StudentPhoto")))%>' />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                 <asp:TemplateField HeaderText="RoomId" Visible="false" ItemStyle-Width="5%" SortExpression="Room" HeaderStyle-HorizontalAlign="Left"
                                                                    ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="RoomIdLabel" runat="server" Text='<%# Bind("RoomId") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                            </Columns>
                                                        </asp:GridView>
                                                    </div>
                                                </ContentTemplate>
                                            </asp:UpdatePanel>
                                        </div>
                                    </div>
                                </div>

                            </asp:Panel>
                        </div>

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