Progress indicator while creating file on the fly and transmitting
Posted on 2012-09-11
I have a button that when clicked, generates an excel file. However, generating this file could take a long time.
I'm trying to show some sort of indicator that "work is happening", however, I cannot use AJAX on the button because my code consists of "Responses" like this:
Response.ContentType = "application/excel";
Response.AppendHeader("Content-Disposition", "attachment; filename=HelloWorld.xlsx");
How can I give the user feedback that work is happening while at the same time using the TransmitFile (or similar) to send the file back to the user?