<%@ Page Title="" Language="C#" MasterPageFile="~/Masters/AgentLoginMaster.Master"
    AutoEventWireup="true" CodeBehind="ForgotPassword.aspx.cs" Inherits="CasheeremitAgent.Account.ForgotPassword" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cpHead" runat="server">
    <script type="text/javascript">

        function swaRedirect(val, typ) {
            swal({
                title: "",
                text: val,
                type: typ,
                showConfirmButton: true,
                confirmButtonColor: "#DD6B55",
                confirmButtonText: "OK",
                closeOnConfirm: false
            }, function (isConfirm) {
                if (isConfirm) {
                    window.location.href = '<%=redurl %>';
                }
                else {
                }
            });
        }
        window.document.title = "Forgot Password";
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpLogin" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" AsyncPostBackTimeout="600">
    </asp:ScriptManager>
    <div class="loginBox">
        <h2 class="mrgT0 ">
            Forgot Password</h2>
        <div class="row ">
            <div class="col-md-4 mrgBot">
                <asp:TextBox ID="txtUsername" runat="server" MaxLength="50" Placeholder="Enter User Name"
                    autocomplete="off" class="txtBox1" AutoCompleteType="Disabled"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtUsername"
                    CssClass="errMsg" ValidationGroup="Submit" Font-Size="X-Small" ErrorMessage="Enter User Name"></asp:RequiredFieldValidator>
            </div>
            <div class="col-md-4">
                <asp:TextBox ID="txtEmailId" Placeholder="Enter EmailID" runat="server" MaxLength="50" autocomplete="off" class="txtBox1"
                    AutoCompleteType="Disabled" oncopy="return false;" onpaste="return false;" oncut="return false;"></asp:TextBox>
                <asp:RequiredFieldValidator ID="reqUsername" runat="server" ControlToValidate="txtEmailId" Display="Dynamic"
                    CssClass="errMsg" ValidationGroup="Submit" Font-Size="X-Small" ErrorMessage="enter EmailId"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="regEmailID" runat="server" ControlToValidate="txtEmailId"  Display="Dynamic"
                    CssClass="errMsg" ValidationGroup="Submit" ErrorMessage="Enter valid Email Address"
                    Font-Size="X-Small" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">
                </asp:RegularExpressionValidator>
                <a href="Login.aspx" class="forgotpass">Back to Login</a>
                <asp:Button ID="btnSubmit" runat="server" Text="Submit" class="orngBtn" OnClick="btnSubmit_click"
                    ValidationGroup="Submit" />
            </div>
        </div>
    </div>
</asp:Content>
