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

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="MainContent">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>

            <%-- <script language="javascript">
       function DisableRightClick(event) {
           //For mouse right click
           if (event.button == 2) {
               alert("Right Clicking not allowed!");
           }
       }
       function DisableCtrlKey(e) {
           var code = (document.all) ? event.keyCode : e.which;
           var message = "Ctrl key functionality is disabled!";
           // look for CTRL key press
           if (parseInt(code) == 17) {
               alert(message);
               window.event.returnValue = false;
           }
       }
      </script>--%>


            <div>
                <%-- Changes By Sudhir Mali on 15-Nov-2019 -------------- Start ----------------
                Purpose : Change label error(message) alignment--%>

                <table  align="left" cellpadding="0" cellspacing="0" style="margin-right: 0px">
                    <tr>
                        <td>
                              <asp:Label ID="LblError" runat="server" CssClass="lblerror"></asp:Label>
                            <%--Added by Varun Patyal on 04-Mar-2021 for UBP--%>  
                            <asp:Label ID="lblSuccess" runat="server" CssClass="lblsuccess"></asp:Label>
                        </td>
                    </tr>
                  </table>

                <br />

              <%----------------------------------- End (15-Nov-2019) -------------------------------%>
                <table class="Filter" align="left" cellpadding="1" cellspacing="1" style="margin-right: 0px">
                    <tr>
                        <td colspan="2"></td>
                    </tr>
                    <tr>
                        <td class="background_gray" colspan="2">Change Password</td>
                    </tr>
                    <tr>
                        <td>Old Password</td>
                        <td>
                            <asp:TextBox ID="Txtoldpassword" runat="server" TextMode="Password"
                                oncopy="return false" onpaste="return false" oncut="return false" autocomplete="off"></asp:TextBox>
                            <asp:CustomValidator ID="CustomValidator1" runat="server"
                                ControlToValidate="Txtoldpassword" Display="None"
                                ErrorMessage="Invalid Old Password ..."></asp:CustomValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>New Password</td>
                        <td>
                            <asp:TextBox ID="Txtnewpassword" runat="server" TextMode="Password"
                                oncopy="return false" onpaste="return false" oncut="return false" autocomplete="off"></asp:TextBox>
                            <asp:CustomValidator ID="CustomValidator3" runat="server"
                                ControlToValidate="Txtnewpassword" Display="None"
                                ErrorMessage="Invalid New Password ..."></asp:CustomValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="Lblreenterpasswore" runat="server" Text="Re Enter Password" Width="125px"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="Txtreenterpassword" runat="server" TextMode="Password"
                                oncopy="return false" onpaste="return false" oncut="return false" autocomplete="off"></asp:TextBox>
                            <asp:CustomValidator ID="CustomValidator2" runat="server"
                                ControlToValidate="Txtnewpassword" Display="None"
                                ErrorMessage="Incorrect Re-Enter Password ..."></asp:CustomValidator>
                            <asp:CustomValidator ID="CustomValidator4" runat="server"
                                ControlToValidate="Txtnewpassword" Display="None"
                                ErrorMessage="Password updated successfully ..."></asp:CustomValidator>
                            <asp:CustomValidator ID="CustomValidator5" runat="server"
                                ControlToValidate="Txtreenterpassword" Display="None"
                                ErrorMessage="Please try different password ..."></asp:CustomValidator>
                            <asp:CustomValidator ID="cvPassword" runat="server" Display="None"
                                ErrorMessage="CustomValidator"></asp:CustomValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td>

                            <asp:Button ID="Btnupdate" runat="server" CssClass="btn" Text="Update"
                                Width="54px" />
                            &nbsp; &nbsp;
                                            <asp:Button ID="btnCancel" runat="server" CssClass="btn" Text="Cancel"
                                                Width="54px" />

                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowSummary="False" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <table class="Filter" align="left" cellpadding="1" cellspacing="1"
                                style="margin-right: 0px;">
                                <tr>
                                    <td class="background_gray" colspan="2">LogIn - LogOut Details
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 125px;">
                                        <b>Last LogIn</b>
                                        <br />
                                        Date &amp; Time |&gt;</td>
                                    <td>
                                        <asp:Label ID="Lbllastlogin" runat="server" Text="Last Login"></asp:Label>
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td>
                                        <b>Last LogOut</b>
                                        <br />
                                        Date &amp; Time |&gt;</td>
                                    <td>
                                        <asp:Label ID="Lbllastlogout" runat="server" Text="Last Logout"></asp:Label>
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td>
                                        <b>Current LogIn</b>
                                        <br />
                                        Date &amp; Time |&gt;</td>
                                    <td>
                                        <asp:Label ID="Lblcurrentlogin" runat="server" Text="Current Login" Width="160px"></asp:Label>
                                        &nbsp;</td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                </table>
                <input id="hdnewpassword" type="hidden" runat="server" />
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
