<%@ Page Title="" Language="C#" MasterPageFile="~/masterpages/eLogin.master" AutoEventWireup="true"
    CodeBehind="ChangeOldPassword.aspx.cs" Inherits="WebSite.ChangeOldPassword" %>

<asp:Content ID="Content1" ContentPlaceHolderID="eContent" runat="server">
    
    <asp:Label ID="FailureText" runat="server" EnableViewState="False" style="color: #ff0000"></asp:Label>

    <asp:Table runat="server" ID="PassWordCont">
        <asp:TableRow>
            <asp:TableCell>
                <table cellpadding="1" cellspacing="0" style="border-collapse: collapse;">
                    <tr>
                        <td>
                            <table cellpadding="0">
                                <tr>
                                    <td align="center" colspan="2">
                                        <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources : Default, LabelChangePassword%>" /> <%--Change Your Password--%>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="CurrentPasswordLabel" runat="server" AssociatedControlID="CurrentPassword" Text="<%$ Resources : Default, LabelCurrentPassword %>"/> <!-- Current Password:</asp:Label> -->
                                    </td>
                                    <td>
                                        <asp:TextBox ID="CurrentPassword" runat="server" TextMode="Password"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="CurrentPasswordRequired" runat="server" ControlToValidate="CurrentPassword"
                                            ErrorMessage="Password is required." ToolTip="Password is required." ValidationGroup="ChangePassword1" Text="*"/>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="NewPasswordLabel" runat="server" AssociatedControlID="NewPassword" Text="<%$ Resources : Default, LabelNewPassword %>" /> <!--New Password:</asp:Label>-->
                                    </td>
                                    <td>
                                        <asp:TextBox ID="NewPassword" runat="server" TextMode="Password"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="NewPasswordRequired" runat="server" ControlToValidate="NewPassword"
                                            ErrorMessage="<%$ Resources : Default, ErrorMessageNewPasswordRequired %>" ToolTip="<%$ Resources : Default, ToolTipNewPasswordrequired %>" 
                                            ValidationGroup="ChangePassword1" >*</asp:RequiredFieldValidator>
                                    </td>
                                    <td>
                                        <asp:Label ID="Message1" runat="server" Text="<%$ Resources : Default, LabelPasswordLenghtMessage_New %>" /><!--Text="Password must be at least eight (8) characters in length and contain at least one (1) letter AND one (1) number"/>-->
                                        <!--<font style="font-size:xx-small">Password must be at least eight (8) characters in length and contain at least one (1) letter AND one (1) number</font>-->
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="ConfirmNewPasswordLabel" runat="server" AssociatedControlID="ConfirmNewPassword" Text="<%$ Resources: Default, LabelConfirmNewPassword %>"/><!--Confirm New Password:</asp:Label>-->
                                    </td>
                                    <td>
                                        <asp:TextBox ID="ConfirmNewPassword" runat="server" TextMode="Password"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="ConfirmNewPasswordRequired" runat="server" ControlToValidate="ConfirmNewPassword"
                                            ErrorMessage="<%$ Resources : Default, ErrorMessageConfirmNewPassword %>"  
                                            ToolTip="<%$ Resources : Default, ToolTipConfirmNewPassword %>" Text="*"  ValidationGroup="ChangePassword1" /> <!--"Confirm New Password is required." ToolTip="Confirm New Password is required." ValidationGroup="ChangePassword1">*</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="ChangePassword1"></asp:CompareValidator> <!--"The Confirm New Password must match the New Password entry."-->
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Button ID="ChangePasswordPushButton" runat="server" CommandName="ChangePassword"
                                            Text="<%$ Resources: Default, ButtonTextChangePassword %>" ValidationGroup="ChangePassword1" OnClick="ChangePasswordPushButton_Click" />
                                    </td>
                                    <td>
                                        <asp:Button ID="CancelPushButton" runat="server" CausesValidation="False" CommandName="Cancel"
                                            Text="<%$ Resources: Default, ButtonCancel %>" OnClick="CancelPushButton_Click" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </asp:TableCell>
        </asp:TableRow>
    </asp:Table>

</asp:Content>
