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

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <div class='divtable'>
        <asp:HiddenField ID="hdnRecordKeyId" runat="server" Value="0" />
        <asp:HiddenField ID="hdnUserPassword" runat="server" Value="0" />
        <asp:HiddenField ID="hdnNewUserPassword" runat="server" Value="0" />
        <div class='form-box'>
            <div class="box box-success">
                <div class="box-header with-border">
                    <div class='row'>
                        <div class='col-md-10'>
                            <asp:Label ID="lblTitle" runat="server" class="box-title"></asp:Label>
                        </div>
                        <div class='col-md-2'>
                            <asp:Button ID="btnChangePassword" runat="server" Text="Change" OnClick="btnChangePassword_Click" ValidationGroup="ChangePassword" CssClass="myButton" ToolTip="Change" />&nbsp;
                            <asp:Button ID="btnReset" runat="server" Text="Reset" OnClick="btnReset_Click" CssClass="myButton" Visible="false" />
                        </div>
                    </div>
                </div>
                <!-- /.box-header -->
                <!-- form start -->
                <div class="form-horizontal">
                    <div class="box-body">
                        <div class="form-group">
                            <asp:Label ID="lblUserName" runat="server" Text="User Name" class="col-sm-2 control-label"></asp:Label>
                            <div class="col-sm-3">
                                <asp:Label ID="lblDisplayLoggedInUserName" runat="server" Text="" class="control-label"></asp:Label>
                            </div>
                        </div>
                        <div class="form-group">
                            <asp:Label ID="lblLoginName" runat="server" Text="Login Name" class="col-sm-2 control-label"></asp:Label>
                            <div class="col-sm-3">
                                <asp:Label ID="lblDisplayLoginName" runat="server" Text="" class="control-label"></asp:Label>
                            </div>
                        </div>
                        <div class="form-group">
                            <asp:Label ID="lblOldPassword" runat="server" Text="Old Password*" class="col-sm-2 control-label"></asp:Label>
                            <div class="col-sm-3">
                                <em>
                                    <asp:RequiredFieldValidator runat="server" ControlToValidate="txtOldPassword" ValidationGroup="ChangePassword"
                                       Display="Dynamic" CssClass="text-alert" ErrorMessage="Old Password is required." />
                                </em>
                                <asp:TextBox MaxLength="15" runat="server" ID="txtOldPassword" TextMode="Password" class="form-control" />
                            </div>
                        </div>
                        <div class="form-group">
                            <asp:Label ID="lblNewPassword" runat="server" Text="New Password*" class="col-sm-2 control-label"></asp:Label>
                            <div class="col-sm-3">
                                <em>
                                    <asp:RequiredFieldValidator runat="server" Display="Dynamic" ControlToValidate="txtNewPassword" ValidationGroup="ChangePassword"
                                        CssClass="text-alert" ErrorMessage="New Password is required." />
                                    <asp:RegularExpressionValidator runat="server" Display="Dynamic" ControlToValidate="txtNewPassword" ValidationGroup="ChangePassword"
                                        CssClass="text-alert" ErrorMessage="Password constraints not matching." ValidationExpression="^(?=.*\d)(?=.*[a-zA-Z]).{8,15}$" />
                                </em>
                                <asp:TextBox MaxLength="15" runat="server" ID="txtNewPassword" TextMode="Password" class="form-control" />
                            </div>
                            <div class="col-sm-5">
                                <asp:Label ID="Label35" runat="server" Text="(min 8 Char, max 15 Char)(Password should be Aa-Zz and 0-9)"></asp:Label>
                            </div>
                        </div>
                        <div class="form-group">
                            <asp:Label ID="lblConfirmPassword" runat="server" Text="Confirm Password*" class="col-sm-2 control-label"></asp:Label>
                            <div class="col-sm-3">
                                <em>
                                    <asp:RequiredFieldValidator runat="server" ControlToValidate="txtConfirmPassword" ValidationGroup="ChangePassword" Display="Dynamic"
                                        CssClass="text-alert" ErrorMessage="Confirm Password is required." />
                                </em>
                                <asp:TextBox MaxLength="15" runat="server" ID="txtConfirmPassword" TextMode="Password" class="form-control" />
                            </div>
                            <div class="col-sm-5">
                                <asp:CompareValidator ID="CompareValidator1" ControlToValidate="txtConfirmPassword" ControlToCompare="txtNewPassword"
                                    Type="String" Operator="Equal" CssClass="text-alert" Text="New Password and Confirm Password not matching" runat="Server" ValidationGroup="ChangePassword" />
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
