Welcome Guest Search | Active Topics | Sign In | Register

The MS UpdateProgress control hang After RenderAsPDF Options
DPS
Posted: Tuesday, December 4, 2012 11:58:50 AM
Rank: Newbie
Groups: Member

Joined: 12/4/2012
Posts: 2
In the source.aspx page, it has a asp.net UpdateProgress control and a button. The button onclick event redirect the response to generate the PDF using the RenderAsPDF method. The UpdateProgress showed up in the source aspx page while the printPDF.aspx is generating the pdf. Then, the File Download window appears to open or save the generated PDF. It works great but the MS UpdateProgress hang, i.e., does not disappear.

source.aspx.cs:
protected void cmdPrintPDF_Click(object sender, EventArgs e) {
Response.Redirect("http://website/printPDF.aspx");
}

printPDF.aspx has:
<eo:ASPXToPDF runat="server" ID="pdf"></eo:ASPXToPDF>

printPDF.aspx.cs has:
pdf.RenderAsPDF() as the last line in Page_Load()

It looks like the ajax call (button click) never ends (or retrun something back to the source.aspx) after redirect. The redirect actually is "downloading" a (dynamically-created) file (pdf).

How can I close the UpdateProgress control in source.aspx after redirect and file download from the printPDF.aspx?
eo_support
Posted: Tuesday, December 4, 2012 12:05:30 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

This is very much an ASP.NET programming question rather an EO.Pdf question. The generalized version of your questions is how to "dynamically generate a file download with UpdateProgress control", which doesn't really have anything to do with our product. So you may want to search online for possible solution about that.

Thanks!
DPS
Posted: Wednesday, December 5, 2012 5:12:25 AM
Rank: Newbie
Groups: Member

Joined: 12/4/2012
Posts: 2
You are correct. I was thinking about there might be some way to "terminate" it (in AfterRender). It turns out to be how the browser handle download file. Thanks.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.