Click here to Skip to main content
15,884,176 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
// html code

XML
<asp:UpdatePanel ID="up1" runat="server" >
                              <Triggers>
                                     <%-- <asp:AsyncPostBackTrigger ControlID ="linkbtnPDF" EventName="Click" /> --%>
                                  <asp:PostBackTrigger ControlID ="linkbtnPDF" />
                              </Triggers>
                             <%-- <asp:AsyncPostBackTrigger ControlID ="linkbtnPDF" EventName="Click" /> --%>



                             <ContentTemplate>
                              <asp:LinkButton ID="linkbtnPDF" runat="server" OnClick="linkbtnPDF_Click" >Pdf Export</asp:LinkButton>

                                 </ContentTemplate>
                         </asp:UpdatePanel>



XML
<asp:UpdateProgress ID="Up4" runat="server" AssociatedUpdatePanelID="up1">
                         <ProgressTemplate>
                             <div class="model">
                                 <div class="center">
                                     <img id="progressimg" style="width:100%"  src="Images/progressbar4.gif" />
                                     </div>
                                 </div>
                             </ProgressTemplate>
                             </asp:UpdateProgress>





//c# code


ReportDocument rep = (ReportDocument)Session["reportdocument"];

Response.Buffer = false;

Response.ClearContent();
Response.ClearHeaders();

try
{


rep.ExportToHttpResponse(ExportFormatType.PortableDocFormat, Response, true, "Customers");

}
//catch (ThreadAbortException ex)
{
Response.Flush();





ex.Message.ToString();

finally
{
Response.End();
}


//please help me regarding progressbar exporting in pdf in updatepanel
Posted
Updated 9-Aug-15 23:39pm
v3
Comments
Roshan 11862764 10-Aug-15 14:51pm    
Try setting ChildAsTrigger property of UpdatePanel to true.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900