I have looked everywhere and seemed to have tried every solution offered, with no success. Is it possible to display a loading screen when generating a PDF and writing the PDF to the http response stream?
I am using EO.pdf and this is rendering the PDF perfectly, it is just taking a while and I need to let the user know a process is occurring.
I have managed to get the loading screen displaying but then can't hide it once the PDF is generated as I call response.End().
I also tried the code below, but add_endRequest does not fire.
Code: JavaScript
var prm = Sys.WebForms.PageRequestManager.getInstance();
prm.add_initializeRequest(postbackButtonClick);
prm.add_endRequest(postbackButtonClose);
var postBackElement;
function postbackButtonClick() {
document.getElementById('<% Response.Write(UpdateProgress1.ClientID); %>').style.display = "inline";
}
function postbackButtonClose() {
document.getElementById('<% Response.Write(UpdateProgress1.ClientID); %>').style.display = "none";
}
Any ideas would be very much appreciated.
Thanks