<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Masters/AgentMaster.Master"
    CodeBehind="WalletTopup.aspx.cs" Inherits="CasheeremitAgent.EWallet.WalletTopup" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cpHead" runat="server">
    <script type="text/javascript">
        history.pushState(null, null, 'WalletTopup.aspx');
        window.addEventListener('popstate', function (event) {
            history.pushState(null, null, 'WalletTopup.aspx');
        });
    </script>
    <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 = "Wallet Top Up";
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpLyremit" runat="server">
<asp:ScriptManager ID="smgr" runat="server">
    </asp:ScriptManager>
    <div class=" col-md-12 padMarg0  margB20 ">
    <script type="text/javascript">
       
        </script>
        <div class="clrfx">
            &nbsp;</div>
        <div class="clrfx">
            &nbsp;</div>
        <div class=" col-md-12 padMarg0 ">
            <div class="box-typ4 rec-his-box working" style="padding-right: 0px;" onkeypress="return WebForm_FireDefaultButton(event, '<%= btnSubmit.ClientID%>')">
                <div class="bluHD col-md-12">
                    <i class="fa fa-gbp iconsize" aria-hidden="true"></i>
                    <asp:Label ID="lblSendTo" runat="server" Text="CasheeRemit WALLET"></asp:Label>
                </div>
               <div class="col-md-12 vinobox">
                <div class="blueHeadTxt">
                    CasheeRemit WALLET TOPUP - ENTER TOPUP AMOUNT TO PROCESS</div>
              
                <h4 id="hamount" visible="false" style="margin-left: 15px;">
                    <asp:Label ID="lblAmount" runat="server" style="margin-left: 33%;" Visible="false"></asp:Label></h4>            
                <div class="clrfx">
                    &nbsp;</div>                
                <div id="dvTranType" class="col-md-12" title="" runat="server">
                    <div class="row mrgBot10">
                        <div class=" col-md-2">
                            <asp:Label ID="lblTopupAmount" runat="server" Text="Topup Amount"></asp:Label>
                            <span class="starRed">*</span></div>
                        <div class=" col-md-5">
                        <span style="width: 10px; float:left;" class="mobcode">
                            <asp:Label ID="lblCurrency" runat="server"></asp:Label></span><span class="mobnum">
                            <asp:TextBox ID="txtTopupAmount" class="txtboxM" MaxLength="6" style="width: 83%;" runat="server"></asp:TextBox> &nbsp;GBP
                            <asp:RequiredFieldValidator ID="rqfSendTo" runat="server" ErrorMessage="Please enter Topup Amount" ValidationGroup='topup'
                                CssClass="errMsg" ControlToValidate="txtTopupAmount" Display="Dynamic"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="regTelephone" runat="server" ControlToValidate="txtTopupAmount" ValidationGroup='topup'
                                CssClass="errMsg" ErrorMessage="Please enter a valid amount(decimal not allowed)"
                                Display="Dynamic" Font-Size="X-Small" ValidationExpression="^(([0-9]\s?){1,6})$"></asp:RegularExpressionValidator>
                            <asp:RangeValidator ID="rvTopupAmount" runat="server" CssClass="errMsg" Display="Dynamic" ValidationGroup='topup'
                                Font-Size="X-Small" ControlToValidate="txtTopupAmount" Type="Integer"></asp:RangeValidator></span>
                        </div>
                    </div>
                    <div class=" col-md-12 " >
                     <asp:Button ID="btnSubmit" runat="server" CssClass="btnB fltR" ValidationGroup='topup' Text="Submit" OnClick="btnSubmit_click" />
                        <asp:Button ID="btnCancel" CausesValidation="false" Text="Back" runat="server" CssClass="btnG fltR"
                            OnClick="btnCancel_Click" />
                       
                    </div>
                    <div class="clrfx">
                        &nbsp;</div>
                </div>
                <div class="clrfx">
                    &nbsp;</div>
                    </div>

            </div>
        </div>
    </div>
</asp:Content>
