<%@ Page Language="C#" MasterPageFile="~/masterpages/eDashboard.master" AutoEventWireup="True" Inherits="site_ChangePassword" Culture="Auto" UICulture="Auto" Title="eSecuritel Change Password" Codebehind="ChangePassword.aspx.cs" %>
<asp:Content ID="Content1" ContentPlaceHolderID="eContent" Runat="Server">
    
        <asp:ChangePassword ID="m_ChangePassword" runat="server" ContinueDestinationPageUrl="~/site/Home.aspx"
            Height="160px" OnChangedPassword="m_ChangePassword_ChangedPassword" CancelDestinationPageUrl="~/site/Home.aspx" PasswordRecoveryUrl="~/RecoverPassword.aspx">
            <ChangePasswordTemplate>
                <table cellpadding="1" cellspacing="0" style="border-collapse:collapse;">
                    <tr>
                        <td>
                            <table cellpadding="0" style="height:160px;">
                                <tr>
                                    <td align="left" colspan="2" style="font-weight:bold;height:20px;">
                                        <asp:Literal ID = "Literal2" runat = "server" Text = "<%$ Resources : Default,LabelChangePassword %>" /></td>
                                </tr>
                                <tr>
                                    <td align="left">
                                        <asp:Label ID="CurrentPasswordLabel" runat="server" 
                                            AssociatedControlID="CurrentPassword"><asp:Literal ID = "Literal1" runat = "server" Text = "<%$ Resources : Default,PasswordLabel %>" /></asp:Label></td><td>
                                        <asp:TextBox ID="CurrentPassword" runat="server" Font-Bold="True" 
                                            TextMode="Password"></asp:TextBox><asp:RequiredFieldValidator ID="CurrentPasswordRequired" runat="server" 
                                            ControlToValidate="CurrentPassword" ErrorMessage="<%$ Resources : Default,PasswordRequiredLabel %>" 
                                            ToolTip="<%$ Resources : Default,PasswordRequiredLabel %>" ValidationGroup="m_ChangePassword">*</asp:RequiredFieldValidator></td></tr><tr>
                                    <td align="left">
                                        <asp:Label ID="NewPasswordLabel" runat="server" 
                                            AssociatedControlID="NewPassword"><asp:Literal ID = "Literal3" runat = "server" Text = "<%$ Resources : Default,LabelNewPasswordColon %>" /></asp:Label></td><td>
                                        <asp:TextBox ID="NewPassword" runat="server" Font-Bold="True" 
                                            TextMode="Password"></asp:TextBox><asp:RequiredFieldValidator ID="NewPasswordRequired" runat="server" 
                                            ControlToValidate="NewPassword" ErrorMessage="<%$ Resources : Default,ErrorMessageNewPasswordRequired %>" 
                                            ToolTip="<%$ Resources : Default,ErrorMessageNewPasswordRequired %>" ValidationGroup="m_ChangePassword">*</asp:RequiredFieldValidator></td></tr><tr>
                                    <td align="left">
                                        <asp:Label ID="ConfirmNewPasswordLabel" runat="server" 
                                            AssociatedControlID="ConfirmNewPassword"><asp:Literal ID = "Literal4" runat = "server" Text = "<%$ Resources : Default,LabelConfirmNewPasswordColon %>" /></asp:Label></td><td>
                                        <asp:TextBox ID="ConfirmNewPassword" runat="server" Font-Bold="True" 
                                            TextMode="Password"></asp:TextBox><asp:RequiredFieldValidator ID="ConfirmNewPasswordRequired" runat="server" 
                                            ControlToValidate="ConfirmNewPassword" 
                                            ErrorMessage="<%$ Resources : Default,ErrorMessageConfirmNewPassword %>" 
                                            ToolTip="<%$ Resources : Default,ErrorMessageConfirmNewPassword %>" ValidationGroup="m_ChangePassword">*</asp:RequiredFieldValidator></td></tr><tr>
                                    <td align="center" colspan="2">
                                        <asp:CompareValidator ID="NewPasswordCompare" runat="server" 
                                            ControlToCompare="NewPassword" ControlToValidate="ConfirmNewPassword" 
                                            Display="Dynamic" 
                                            ErrorMessage="<%$ Resources : Default,ErrorMessageConfirmNewPasswordMustMatch %>" 
                                            ValidationGroup="m_ChangePassword"></asp:CompareValidator></td></tr><tr>
                                    <td align="center" colspan="2" style="color:Red;">
                                        <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal></td></tr><tr>
                                    <td align="right">
                                        <asp:Button ID="ChangePasswordPushButton" runat="server" 
                                            CommandName="ChangePassword" Text="<%$ Resources : Default,ButtonTextChangePassword %>" 
                                            ValidationGroup="m_ChangePassword" />
                                    </td>
                                    <td>
                                        <asp:Button ID="CancelPushButton" runat="server" CausesValidation="False" 
                                            CommandName="Cancel" Text="<%$ Resources : Default,ButtonCancel %>" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </ChangePasswordTemplate>
            <LabelStyle HorizontalAlign="Left" />
            <TitleTextStyle Font-Bold="True" Height="20px" HorizontalAlign="Left" />
            <TextBoxStyle Font-Bold="True" />
        </asp:ChangePassword>
    
</asp:Content>

