Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1020
WebExcelExporter failed
posted

I want show a wait icon when Export grid data to excel. My code is:

<asp:UpdatePanel ID="UpdatePanel1" runat="server" >
<ContentTemplate>
<span class="anniu">

<asp:Button ID="Button2" runat="server" Text="Export" OnClick="btnExcel_Click" />
</span>
</ContentTemplate>
<Triggers>

<asp:AsyncPostBackTrigger ControlID="Button2" EventName="Click" />

</Triggers>
</asp:UpdatePanel>

<asp:UpdateProgress ID="UpdateProgress1" runat="server"
AssociatedUpdatePanelID="UpdatePanel1">
<ProgressTemplate>
<img src="../../../images/ajax-loader.gif" style="width: 16px; height: 16px" />
</ProgressTemplate>
</asp:UpdateProgress>

I get a exception when I click button to export grid data.

If I change "asp:AsyncPostBackTrigge" to "asp:PostBackTrigge" ,It is ok but the image do not show.

How can I show the image when export ?