<%@ Page Title="Export CSV" Language="C#" MasterPageFile="~/setting/Setting.Master" AutoEventWireup="true" CodeBehind="rptMachineCSV_filter.aspx.cs" Inherits="CheckSheet.setting.rptMachineCSV_filter" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %> 
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <script type="text/javascript">


        $(document).ready(function () {

        });



        function printpdf(ctl) {
             
            swal({
                title: "Load data",
                type: 'info',
                text: "Please wait...",
                timer: 20000,
                imageUrl: '../loader.gif',
                showConfirmButton: false,
                timerProgressBar: true
            })

            .then(() => {
                swal({ 
                    title: 'Finished!',
                    type: 'success',
                    timer: 1000,
                    showConfirmButton: false
                })
            })

            let filter = "";
 

            $('#iframe').attr('src', 'rptMachineCSV?filter=' + filter + '&item=');



        }








 </script>


<asp:Panel ID="Panel1" runat="server" style="overflow:no-display;" Width="100%" Height="1000px"> 


        <div id="g1" class="grouplist">

            
             <div class="form-row">
                <div class="frmrow">
                     <span class="sp1">
                    <label>
                    <asp:Label ID="lblPageName" runat="server"  CssClass="frmheader"  Text="Export data"  width="120px"></asp:Label>
                   
                    </label>
                    </span>
                   
                </div>
            </div>

<br />
       </div>

      <asp:Button ID="btnshow" CssClass="buttonmsg" runat="server" Text="View" OnClientClick="JavaScript:printpdf(this);return false;" />
     <asp:Button ID="btnreload" CssClass="buttonmsg" runat="server" Text="Cancel" OnClientClick="JavaScript:location.reload();" />

    <br />
    <iframe id="iframe" name="myIframe" width="95%" height="500"></iframe>

    </asp:Panel>

</asp:Content>




