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

<asp:Content ID="Content1" ContentPlaceHolderID="cpHead" runat="server">
    <style type="text/css">
        .captchadisplay
        {
            display: none;
        }
    </style>
    <script type="text/javascript">

        $(window).keydown(function (event) {
            if ((event.keyCode == 107 && event.ctrlKey == true) || (event.keyCode == 109 && event.ctrlKey == true)) {
                event.preventDefault();
            }

            $(window).bind('mousewheel DOMMouseScroll', function (event) {
                if (event.ctrlKey == true) {
                    event.preventDefault();
                }
            });
        });


    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpLogin" runat="server">
    <asp:ScriptManager ID="scm" runat="server">
    </asp:ScriptManager>
    <!-- Login Page -->
    <div class="loginBox">
        <h2 class="mrgT0 ">
            Login</h2>
        <asp:Label ID="lblErrMsg" runat="server" Font-Size="Small" ForeColor="Red"></asp:Label>
        <asp:Label ID="lblSuccMsg" runat="server" Font-Size="Small" ForeColor="Green"></asp:Label>
        <div class="row ">
            <div class="col-md-4 mrgBot">
                <asp:DropDownList ID="ddlAgent" class="txtboxM" DataValueField="Agent_ID"
                           DataTextField="Agent_Name"  runat="server">
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="reqAgent" runat="server" ControlToValidate="ddlAgent"
                    Display="Dynamic" CssClass="errMsg" ValidationGroup="login" Font-Size="X-Small"
                    ErrorMessage="Select an outlet" InitialValue="0"></asp:RequiredFieldValidator>
            </div>
        </div>
        <div class="row ">
            <div class="col-md-4 mrgBot">
                <asp:TextBox ID="txtUserName" runat="server" Placeholder="Enter User Name" class="txtBox1"
                    MaxLength="20" autocomplete="off" AutoCompleteType="Disabled"></asp:TextBox>
                <asp:RequiredFieldValidator ID="reqUsername" runat="server" ControlToValidate="txtUserName"
                    Display="Dynamic" CssClass="errMsg" ValidationGroup="login" Font-Size="X-Small"
                    ErrorMessage="Enter User Name"></asp:RequiredFieldValidator>
                <%--<asp:RegularExpressionValidator ID="regAmount" runat="server" ValidationGroup="login"
                    ControlToValidate="txtUserName" Display="Dynamic" CssClass="errMsg" ErrorMessage="Please enter a valid amount"
                    ValidationExpression="^((PK|pk)[0-9A-Za-z]{22})$"></asp:RegularExpressionValidator>--%>
            </div>
            <div class="col-md-4">
                <input id="txtPassword" placeholder="Enter Password" runat="server" type="password"
                    class="txtBox1" maxlength="25" autocomplete="off" autocompletetype="Disabled"
                    oncopy="return false;" onpaste="return false;" oncut="return false;" />
                <asp:RequiredFieldValidator ID="reqPassword" runat="server" ControlToValidate="txtPassword"
                    Display="Dynamic" CssClass="errMsg" ErrorMessage="Enter Password" ValidationGroup="login"
                    Font-Size="X-Small"></asp:RequiredFieldValidator>
                <a href="ForgotPassword.aspx" class="forgotpass">Forgot your password? </a>
                <asp:Button ID="btnlogin" runat="server" Text="Login" class="orngBtn" OnClick="btnlogin_click"
                    ValidationGroup="login" />
            </div>
        </div>
    </div>
</asp:Content>
