<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="ChangePassword.aspx.cs" Inherits="NikaiDSR.ChangePassword" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <script language='javascript'>
        function Delayer() {
            setTimeout("Redirection()", 5000);
        }
        function Redirection() {
            window.location = "Login.aspx";
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server" ClientIDMode="Predictable">
    <div class="content_holder">
        <h1>
            <asp:Label ID="lblTitle" runat="server" SkinID="headerLabel" Text="Change Password"></asp:Label></h1>
        <div class="min_width bg_shadow">
            <table cellspacing="0" cellpadding="0" border="0">
                <tbody>
                    <tr>
                        <td width="200">
                            Old Password<span class="required">*</span>
                        </td>
                        <td width="200">
                            <asp:TextBox ID="txtOldpass" runat="server" type="text" MaxLength="50" TextMode="Password"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="OldPassword" runat="server" ControlToValidate="txtOldpass"
                                Style="color: Red;" ErrorMessage="*" ToolTip="Old password is required."></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            New Password<span class="required">*</span>
                        </td>
                        <td>
                            <asp:TextBox ID="txtNewPass" runat="server" type="text" MaxLength="50" TextMode="Password"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="NewPassword" runat="server" ControlToValidate="txtNewPass"
                                Style="color: Red;" ErrorMessage="*" ToolTip="New password is required."></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Confirm Password<span class="required">*</span>
                        </td>
                        <td>
                            <asp:TextBox ID="txtConPass" runat="server" type="text" MaxLength="50" TextMode="Password"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="ConPassword" runat="server" ControlToValidate="txtConPass"
                                Style="color: Red;" ErrorMessage="*" ToolTip=" Confirm password is required."></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <asp:Label ID="lblMsg" runat="server" SkinID="errorLabel"></asp:Label>
                            <asp:CompareValidator ID="CPasswordRequired" runat="server" ControlToCompare="txtNewPass"
                                ControlToValidate="txtConPass" ErrorMessage="Your passwords do not match up!"
                                Display="Dynamic" Style="color: Red;" />
                        </td>
                    </tr>
                </tbody>
            </table>
            <div class="btn_submit">
                <asp:Button ID="btnSubmit" runat="server" Text="Save" SkinID="submitButton" CommandName="save"
                    OnCommand="btnSubmit_Command" />
            </div>
        </div>
    </div>
</asp:Content>
