Update progress not working.The code is given below,When i am clicking on any button in the grid(paging,filtering etc) the progress is working.But when i am clicking on the image button the progress not working.
<asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="upnlStockList"
DisplayAfter="0" DynamicLayout="true">
<ProgressTemplate>
<div class="PopupPanel">
<table style="vertical-align: middle; width: 100%; height: 900px">
<tr>
<td valign="middle" align="center">
<img id="Img1" src="~/Images/loading.gif" runat="server" />
</td>
</tr>
</table>
</div>
</ProgressTemplate>
</asp:UpdateProgress>
<asp:UpdatePanel ID="upnlStockList" runat="server" ChildrenAsTriggers="true" UpdateMode="Always">
<ContentTemplate>
<grid></grid>
</ContentTemplate>
<Triggers>
<asp:PostBackTrigger ControlID="imgPDF" />
<asp:PostBackTrigger ControlID="imgExcel" />
<asp:PostBackTrigger ControlID="imgCSV" />
</Triggers>
</asp:UpdatePanel>
protected void imgExcel_Click(object sender, ImageClickEventArgs e)
{
(initializing the report and assigning parameter).
ReportProcessor reportProcessor = new ReportProcessor();
RenderingResult result = reportProcessor.RenderReport(PDF, rptStockList, null);
string fileName = result.DocumentName + ".pdf";
Response.Clear();
Response.ContentType = result.MimeType;
Response.Cache.SetCacheability(HttpCacheability.Private);
Response.Expires = -1;
Response.Buffer = true;
Response.AddHeader("Content-Disposition", string.Format("{0};FileName=\"{1}\"", "attachment", fileName));
Response.BinaryWrite(result.DocumentBytes);
Response.End();
}
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
script manager in master page
By clicking the image button i am downloading the report as pdf.
The AsyncPostBackTrigger Specifies a control and event that will cause a partial page update for the UpdatePanel that contains this trigger reference.
The PostBackTrigger Specifies a control and event that will cause a full page update (a full page refresh). This tag can be used to force a full refresh when a control would otherwise trigger partial rendering.
So try to use like this.
Hope this may helpful…