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

<%@ 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" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="StudentPasswordUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">
                <!-- ContentPlaceHolder Box Starts -->

                <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="122"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>

                </div>
                <div class="row whiteboxpaddingleft">
                    <div class="himssuHeader2WireBox ">
                        <div class="contentHolder" style="padding-top: 0px; padding-left: 0px; padding-right: 0px">
                            <div class="himssuHeader5WireBox card card-box">
                                <div class="himsBoxHeader card-head">
                                    <div class="leftdiv">
                                    </div>
                                    <div class="himsBoxTitle">
                                        <div class="headerText">
                                            <header>
                                                <i class="fas fa-cog"></i>
                                                <asp:Label ID="Label1" runat="server" Text="Maintainance"></asp:Label>
                                            </header>
                                        </div>
                                    </div>
                                </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="ClassLabel" runat="server" Text="Class"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList runat="server" ID="ClassDropDownList" SkinID="CustomWidthDropDownList"
                                                            CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                            AutoPostBack="true" OnSelectedIndexChanged="ClassDropDownList_OnSelectedIndexChanged">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="DivisionLabel" runat="server" Text="Division"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList runat="server" ID="DivisionDropDownList" SkinID="CustomWidthDropDownList"
                                                            CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                            AutoPostBack="true" OnSelectedIndexChanged="DivisionDropDownList_OnSelectedIndexChanged">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>

                                                <%-- <div class="outerBox pTop5 col-md-3" style="display: none">
                                                                <div class="controlLabelWidth">
                                                                    <asp:CheckBox ID="PendingLoginCheckBox" runat="server" Text="Pending Login (Top 100)" OnCheckedChanged="PendingLoginCheckBox_CheckedChanged"
                                                                        AutoPostBack="True" />
                                                                </div>
                                                                <div class="fLeft pRight5">
                                                                    <asp:CheckBox ID="CreatedLoginCheckBox" runat="server" Text="Created Login" OnCheckedChanged="CreatedLoginCheckBox_CheckedChanged"
                                                                        AutoPostBack="True" />
                                                                </div>

                                                                <div class="fLeft pRight5">
                                                                    <asp:CheckBox ID="notregisterCheckBox" runat="server" Text="Not Register" OnCheckedChanged="notregisterCheckBox_CheckedChanged"
                                                                        AutoPostBack="True" />
                                                                </div>
                                                            </div>--%>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="PrefixLabel" runat="server" Text="Prefix"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:TextBox ID="PrefixTextBox" runat="server" onmouseleave="showHideTooltip()" SkinID="CustomWidthTextBox"
                                                            onmouseenter="showHideTooltip()"></asp:TextBox>
                                                        <asp:TextBox ID="AutocompleteTextBox" runat="server" ClientIDMode="Static" MaxLength="100" SkinID="CustomWidthTextBox" Width="100px" Style="display: inline-block; user-select: none; opacity: 0; border: 0.1px solid; border-radius: 1px; padding: 1px; width: 1px;"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="Label3" runat="server" Text="Login " CssClass="mandatory"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList runat="server" ID="userLoginDropDownList" SkinID="CustomWidthDropDownList"
                                                            CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                            AutoPostBack="true" OnSelectedIndexChanged="userLoginDropDownList_SelectedIndexChanged">
                                                            <asp:ListItem Value="0">-Select-</asp:ListItem>
                                                            <asp:ListItem Value="1">Pending Login</asp:ListItem>
                                                            <asp:ListItem Value="2">Created Login</asp:ListItem>
                                                            <asp:ListItem Value="3">Not Register</asp:ListItem>
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="OrderByLabel" runat="server" Text="Order By"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList runat="server" ID="OrderByDropDownList" SkinID="CustomWidthDropDownList"
                                                            CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" AutoPostBack="true" OnSelectedIndexChanged="OrderByDropDownList_OnSelectedIndexChanged">
                                                            <asp:ListItem Text="Roll No" Value="1" Selected="True"></asp:ListItem>
                                                            <asp:ListItem Text="ID No" Value="2"></asp:ListItem>
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>

                                                <div class="outerBox pTop5 col-md-6">
                                                    <div class="controlLabelWidth">
                                                        <asp:CheckBoxList ID="AlertCheckBoxList" runat="server" RepeatDirection="Horizontal">
                                                            <asp:ListItem Text="SMS" Value="1" Selected="True"></asp:ListItem>
                                                            <asp:ListItem Text="Email" Value="2"></asp:ListItem>
                                                            <asp:ListItem Text="Notification" Value="3"></asp:ListItem>
                                                            <asp:ListItem Text="WhatsApp" Value="4"></asp:ListItem>
                                                        </asp:CheckBoxList>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="fLeft">
                                                        <asp:CheckBox ID="StopAutoAlertCheckBox" runat="server" Text="Stop Auto Alert" />
                                                    </div>
                                                </div>
                                            </asp:Panel>
                                            <div id="Div1" class="himssuHeader7WireBox col-md-12" runat="server"
                                                visible="false">
                                                <div class="himsBoxHeader col-md-12 inner" id="GridViewPagerDiv" runat="server" visible="True">
                                                    <div class="leftdiv">
                                                    </div>

                                                    <div class="himsBoxTitle">
                                                        <div class="headerText">
                                                            <%-- <header class="col-md-1">
                                                                <asp:Label ID="Label2" Text="List" runat="server" Font-Bold="True" meta:resourcekey="GridViewLabelResource1" />
                                                            </header>--%>
                                                            <div class="leftdiv col-md-6">
                                                                <asp:Label runat="server" ID="RgisterCount" Text="" Font-Size="Small"></asp:Label>

                                                                <asp:Label runat="server" ID="NOtRgisterCount" Text="" Font-Size="Small"></asp:Label>
                                                            </div>
                                                            <div>
                                                                <uc1:GridViewPager ID="StudentPasswordGridViewPager" ParentGridView="StudentPasswordGridView" runat="server"
                                                                    OnFirstRecordClick="StudentPasswordGridViewPager_FirstRecordClick" OnLastRecordClick="StudentPasswordGridViewPager_LastRecordClick"
                                                                    OnNextRecordClick="StudentPasswordGridViewPager_NextRecordClick" OnPrevRecordClick="StudentPasswordGridViewPager_PrevRecordClick"
                                                                    OnTextBoxValueChange="StudentPasswordGridViewPager_TextBoxValueChange" />
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="himsBoxContent">
                                                    <%--<div id="GridViewMessageDiv" class="himsBoxContentMsg" runat="server" 
                            visible="False"></div>  --%>
                                                    <%--    <div id="DivData" class="Container" style="vertical-align: top; height: 450px; width: 99.6%;">  --%>
                                                    <div id="Div14" runat="server" class="table-responsive pTop5">
                                                        <asp:GridView ID="StudentPasswordGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                            EmptyDataText="No Records Found !!" OnRowDataBound="StudentPasswordGridView_OnRowDataBound"
                                                            CssClass="table table-striped table-bordered table-hover" AllowPaging="true" ShowHeader="true"
                                                            DataKeyNames="Id,StudentId,LoginPassword" PageSize="100">
                                                            <Columns>
                                                                <asp:TemplateField HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="5%">
                                                                    <HeaderTemplate>
                                                                        <label class="rt-chkbox rt-chkbox-outline">

                                                                            <asp:CheckBox ID="HeaderSelectCheckBox" runat="server" 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="SU Id" ItemStyle-Width="10%" ItemStyle-Wrap="true"
                                                                    HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="SUIdLabel" runat="server" ClientIDMode="Static" Text='<%# Bind("SUId") %>'
                                                                            Width="100%" SkinID="CustomWidthLabel"></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="ID No" ItemStyle-Width="10%" ItemStyle-Wrap="true"
                                                                    HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="CodeLabel" runat="server" ClientIDMode="Static" Text='<%# Bind("Code") %>'
                                                                            Width="100%" SkinID="CustomWidthLabel"></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:BoundField DataField="ClassName" HeaderText="ClassName" ItemStyle-Width="5%" ItemStyle-Wrap="true"
                                                                    HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                <asp:BoundField DataField="RollNo" HeaderText="RollNo" ItemStyle-Width="5%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                <asp:TemplateField HeaderText="Name" ItemStyle-Width="5%" ItemStyle-Wrap="true"
                                                                    HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="NameLabel" runat="server" ClientIDMode="Static" Text='<%# Bind("Name") %>'
                                                                            Width="100%" SkinID="CustomWidthLabel"></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="EmailId" ItemStyle-Width="10%" ItemStyle-Wrap="true"
                                                                    HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="EmailIdLabel" runat="server" Width="100px" Text='<%# Bind("EmailId") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Mobile No" ItemStyle-Width="10%" ItemStyle-Wrap="true"
                                                                    HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="MobileNoLabel" runat="server" Text='<%# Bind("MobileNo") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="WhatsApp No" ItemStyle-Width="10%" ItemStyle-Wrap="true"
                                                                    HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="WhatsAppContactNoLabel" runat="server" Text='<%# Bind("WhatsAppContactNo") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="User Name" ItemStyle-Width="10%" ItemStyle-Wrap="true"
                                                                    HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="UserNameLabel" runat="server" Text='<%# Bind("UserName") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <%--add AutoCompletePasswordTextBox due to autocomplete issue after degin update--%>
                                                                <asp:TemplateField HeaderText="Password" ItemStyle-Width="10%" ItemStyle-Wrap="true"
                                                                    HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="PasswordTextBox" runat="server" ClientIDMode="Static" Text='<%# Bind("LoginPassword") %>'
                                                                            Width="100%" SkinID="CustomWidthTextBox" MaxLength="100" autocomplete="off" AutoCompleteType="Disabled"></asp:TextBox>
                                                                        <%--    <asp:TextBox ID="AutoCompletePasswordTextBox" runat="server" ClientIDMode="Static" Text='<%# Bind("LoginPassword") %>'
                                                                            Width="100%" SkinID="CustomWidthTextBox" MaxLength="100" autocomplete="off" AutoCompleteType="Disabled"  style="display:inline-block;user-select: none;opacity: 0;border:0.1px solid ;border-radius:1px;padding:1px;width:1px;"></asp:TextBox>--%>
                                                                        <asp:HiddenField ID="PassHiddenField" runat="server" />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center">
                                                                    <HeaderTemplate>
                                                                        <div class="input-group-append">
                                                                            <button id="show_password1" class="btn btn-primary" type="button" onclick="return EnableDisablePass(this)" runat="server" style="background-color: #3c8dbc !important;">
                                                                                <span class="fa fa-eye-slash icon" id="AllPass"></span>
                                                                            </button>
                                                                        </div>
                                                                    </HeaderTemplate>
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="HiddenTextBox" runat="server" ClientIDMode="Static" Style="display: none;"
                                                                            Width="100%" SkinID="CustomWidthTextBox" MaxLength="100" autocomplete="off" AutoCompleteType="Disabled"></asp:TextBox>
                                                                        <div class="input-group-append">
                                                                            <button id="show_password" class="btn btn-primary" type="button" onclick="return GetButtonId(this)" runat="server" style="background-color: #3c8dbc !important;">
                                                                                <span class="fa fa-eye-slash icon" id="eyeslash"></span>
                                                                            </button>
                                                                        </div>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Register" ItemStyle-Width="2%" ItemStyle-Wrap="true"
                                                                    HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="RegisterLabel" runat="server" ClientIDMode="Static" Text=""
                                                                            Width="100%" SkinID="CustomWidthLabel"></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <%--<asp:TemplateField HeaderText="Status" ItemStyle-Width="5%" ItemStyle-Wrap="true"
                                                                    HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="StatusLabel" runat="server" ClientIDMode="Static" Text='<%# Bind("Status") %>'
                                                                            Width="100%" SkinID="CustomWidthLabel"></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>--%>
                                                            </Columns>
                                                            <PagerSettings Visible="False" />
                                                        </asp:GridView>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="col-md-12">
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:Button ID="SetGRNoButton" Text="&#xf023; Generate Random Password" runat="Server"
                                                            SkinID="0" CssClass="btn-search btn fas" OnClick="SetGRNoButton_OnClick" />
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:Button ID="MobileNoAsPasswordButton" Text="&#xf023; Generate Mobile No as Password" runat="Server"
                                                            SkinID="0" CssClass="btn-search btn fas" OnClick="MobileNoAsPasswordButton_Click" />
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3" runat="server">
                                                    <div class="controlLabelWidth">
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:Button ID="UserNameAsPasswordButton" Text="&#xf023; Generate Id No as Password" runat="Server"
                                                            SkinID="0" CssClass="btn-search btn fas" OnClick="UserNameAsPasswordButton_OnClick" />
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3" runat="Server" visible="false" id="generateSUIDDiv">
                                                    <div class="controlLabelWidth">
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:Button ID="SUIdAsPasswordButton" Text="&#xf023; Generate SUId as Password" runat="Server"
                                                            SkinID="0" CssClass="btn-search btn fas" OnClick="SUIdAsPasswordButton_OnClick" />
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3" runat="Server" visible="false" id="EmailIdAsUsernameDiv">
                                                    <div class="controlLabelWidth">
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:Button ID="EmailIdAsUsernameButton" Text="&#xf023;  Generate Email Id as Username" runat="Server"
                                                            SkinID="0" CssClass="btn-search btn fas" OnClick="EmailIdAsUsernameButton_Click" />
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:Button ID="UpdatePasswordButton" Text="&#xf023; Update Password" runat="Server" SkinID="0" CssClass="btn-search btn fas"
                                                            OnClick="UpdatePasswordButton_OnClick" />
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3" runat="Server" visible="false" id="generateParentDiv">
                                                    <div class="controlLabelWidth">
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:Button ID="SetMobileNoButton" Text="&#xf023; Generate Parent Mobile No as User Name"
                                                            runat="Server" SkinID="0" CssClass="btn-search btn fas" OnClick="SetMobileNoButton_OnClick" />
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3" visible="false" runat="Server" id="generateparentemaildiv">
                                                    <div class="controlLabelWidth">
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:Button ID="SetEmailIdButton" Text="&#xf023; Generate Parent EmailId as User Name" runat="Server"
                                                            SkinID="0" CssClass="btn-search btn fas" OnClick="SetEmailIdButton_OnClick" />
                                                    </div>
                                                </div>

                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:Button ID="SendAlertButton" Text="&#xf0e0; Send Alert" runat="Server" SkinID="0" CssClass="btn-search btn fas"
                                                            OnClick="SendAlertButton_OnClick" />
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:Button ID="ExportToExcelButton" Text="&#xf15c; Export To Excel" runat="Server" SkinID="0" CssClass="btn-search btn fas"
                                                            OnClick="ExportToExcelButton_OnClick" />
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:Button ID="ExportToExcelAllButton" Text="&#xf15c; Export To Excel All" runat="Server"
                                                            SkinID="0" CssClass="btn-search btn fas" OnClick="ExportToExcelAllButton_OnClick" />
                                                    </div>
                                                </div>
                                                <%--changes for mantis ID :0035043--%>
                                                <div class="outerBox pTop5 col-md-3" runat="server" visible="false">
                                                    <div class="controlLabelWidth">
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:Button ID="ChangeLoginButton" Text="&#xf2f6; Change LogIn" runat="Server" SkinID="0" CssClass="btn-search btn fas"
                                                            OnClick="ChangeStudentButton_OnClick" />
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:Button ID="ViewReportButton" Text="&#xf15c; View Report" runat="Server" SkinID="0" CssClass="btn-search btn fas"
                                                            OnClick="ViewReportButton_Click" />
                                                    </div>
                                                </div>


                                                <div class="alignCenter col-md-12 pTop5 pb5">
                                                    <asp:Button ID="UpdateDetailButton" Text="&#xf021; Update Detail" runat="Server" SkinID="0"
                                                        OnClick="UpdateDetailButton_OnClick" Visible="false" CssClass="btn btn-update" />
                                                    <asp:HiddenField runat="server" ID="ButtonIdHiddenField" />
                                                </div>
                                            </div>
                                    </asp:Panel>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="spacer">
                        <asp:Image ID="Image4" runat="server" ImageUrl="~/Images/spacer.gif" />
                    </div>

                </div>
            </div>
            <div class="spacer">
                <img src="../../../Images/spacer.gif" />
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--  <script data-main="../../../JavaScript/rjs/encrypt/student-password-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/student-password")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>

    <script type="text/javascript">
        document.addEventListener('contextmenu', function (e) {
            e.preventDefault();
        });

        $(document).keydown(function (event) {
            if (event.keyCode == 123) { // Prevent F12
                return false;
            }
            else if (event.ctrlKey && event.shiftKey && event.keyCode == 67) { // Prevent Ctrl+Shift+C      
                return false;
            }
            else if (event.ctrlKey && event.shiftKey && event.keyCode == 73) { // Prevent Ctrl+Shift+I        
                return false;
            }
            else if (event.ctrlKey && event.shiftKey && event.keyCode == 74) { // Prevent Ctrl+Shift+J       
                return false;
            }
            else if (e.ctrlKey && event.keyCode == 85) {  // Prevent Ctrl+ U
                return false;
            }
        });

        function GetButtonId(button) {
            var row = button.parentNode.parentNode.parentNode;
            var rowindex = row.rowIndex - 1;
            var grid = document.getElementById("<%= StudentPasswordGridView.ClientID%>");
            var txtPassword = $("input[id*=PasswordTextBox]");
            //var txtPassword = $("input[id=PasswordTextBox]");
            var HiddenTextBox = $("input[id*=HiddenTextBox]");
            var show_password = $("input[id*=show_password]");
            var eyeslash = $("span[id*=eyeslash]");
            //var AllPass = $("span[id*=AllPass]");

            if (txtPassword[rowindex].getAttribute('type') == 'password') {
                $(txtPassword[rowindex]).attr('type', 'text');
                $(eyeslash[rowindex]).removeClass('fa fa-eye-slash icon').addClass('fa fa-eye icon');
                HiddenTextBox[rowindex].value = "text";
            }
            else {
                $(txtPassword[rowindex]).attr('type', 'password');
                $(eyeslash[rowindex]).removeClass('fa fa-eye icon').addClass('fa fa-eye-slash icon');
                HiddenTextBox[rowindex].value = "password";
            }

            return false;
        };

        function EnableDisablePass(btn) {

            var AllPass = $("span[id*=AllPass]");
            var cssclass = AllPass.attr('class');
            var grid = document.getElementById("<%= StudentPasswordGridView.ClientID%>");
            for (var i = 0; i < grid.rows.length - 1; i++) {
                var txtPassword = $("input[id*=PasswordTextBox]");
                //var txtPassword = $("input[id=PasswordTextBox]");
                var HiddenTextBox = $("input[id*=HiddenTextBox]");
                var eyeslash = $("span[id*=eyeslash]");
                //var eyeslash1 = $("span[id*=eyeslash1]");

                if (cssclass == 'fa fa-eye-slash icon') {
                    $(txtPassword[i]).attr('type', 'text');
                    $(eyeslash[i]).removeClass('fa fa-eye-slash icon').addClass('fa fa-eye icon');
                    HiddenTextBox[i].value = "text";
                }
                else {
                    $(txtPassword[i]).attr('type', 'password');
                    $(eyeslash[i]).removeClass('fa fa-eye icon').addClass('fa fa-eye-slash icon');
                    HiddenTextBox[i].value = "password";
                }
            }
            if (cssclass == 'fa fa-eye-slash icon') {
                $(AllPass).removeClass('fa fa-eye-slash icon').addClass('fa fa-eye icon');
                //$('#ctl00_CP_HideShowPassHiddenField').val() = "";
            }
            else {
                $(AllPass).removeClass('fa fa-eye icon').addClass('fa fa-eye-slash icon');
            }

            return false;
        };

    </script>
</asp:Content>
