Reporting system has list of available reports on a web page. When user clicks on a report new browser window opens, server starts to prepare report (winword document) and then sends it back after 2-10 seconds.
Code in the handler looks like the following:
context.Response.AddHeader("Content-Disposition",
"attachment;filename=report.doc");
context.Response.BinaryWrite(reportDocument);
I want to show "please wait" in this new window. Is it possible to prepare html content immediately ("please wait") send it back and then continue with time-consuming report preparation not closing connection?
What do you suggest if it's not possible to return multiple content types per one http request?
Thank you in advance!