Asp.net Update Progress - Export To Excel - Java Script Issue


Asp.net Update Progress - Export To Excel - Java Script Issue



Using the below Java Script to show the loader once the Export To Excel button is clicked.



function showProgress() {
var updateProgress = $get("");
updateProgress.style.display = "block";
}



<asp:Button ID="btntoExcel" runat="server" Text="Export to Excel" onclick="btntoExcel_Click" OnClientClick="showProgress()" Width="115px"
CssClass="styleShowData" Font-Size="Smaller" />



Everything is working fine but the loader keeps on loading after saving the file in system also.



Don't know how to stop the loader since in JS it is mentioned as



updateProgress.style.display = "block"


updateProgress.style.display = "block"



Any suggestion will be highly helpful.



Thanks in advance.



Adding Whole Code Below


<%@ Page Language="VB" AutoEventWireup="true" CodeFile="ViewReport.aspx.vb" Inherits="ViewReport" %>








Status Report




function showProgress() {
var updateProgress = $get("");
updateProgress.style.display = "block";
}

function hideProgress() {
var updateProgress = $get("");
updateProgress.style.display = "none";
}























      













Approved
Pending
Rejected



25
50
100
200
300
400
500
All
























</div>
</ContentTemplate>

<Triggers>
<asp:PostBackTrigger ControlID = "btntoExcel" />
</Triggers>

</asp:UpdatePanel>

<asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel_1">
<ProgressTemplate>

Comments

Popular posts from this blog

paramiko-expect timeout is happening after executing the command

Export result set on Dbeaver to CSV

Opening a url is failing in Swift