Hi,
I have a master page with a RadAjaxPanel wrapped around the ContentPlaceHolder.
This works well for most of my pages with the RadAjaxLoadingPanel popping up as expected and disappearing when the request completes.
My issue occurs when I download a file to the browser using the following sequence of code: (*** Code updated 13dec2012 ***)
The above code is actually in a separate page from the one on which the initial request was launched. I do a Response.Redirect to get to this second page (which is not displayed, but just performs the above code in its Page_Load event).
The document is successfully downloaded to the browser, but the RadAjaxLoadingPanel remains visible.
Is there something I should be doing to make the loading panel aware that the request is complete?
I have tried using Response.End() but this causes an error.
Once again, the loading panel is working fine for any other type of requests; it's only the document download that causes the problem.
Any suggestions would be greatly appreciated.
Thanks in advance.
Jim
I have a master page with a RadAjaxPanel wrapped around the ContentPlaceHolder.
This works well for most of my pages with the RadAjaxLoadingPanel popping up as expected and disappearing when the request completes.
My issue occurs when I download a file to the browser using the following sequence of code: (*** Code updated 13dec2012 ***)
Response.TransmitFile(path + Session["Attachment"].ToString());
Response.AddHeader("Content-Disposition", "attachment; filename=" + Session["Attachment"].ToString().Replace(" ", "_"));
Response.ContentType = "application/octet-stream";
Response.AddHeader("Content-Disposition", "attachment; filename=" + Session["Attachment"].ToString().Replace(" ", "_"));
Response.ContentType = "application/octet-stream";
The above code is actually in a separate page from the one on which the initial request was launched. I do a Response.Redirect to get to this second page (which is not displayed, but just performs the above code in its Page_Load event).
The document is successfully downloaded to the browser, but the RadAjaxLoadingPanel remains visible.
Is there something I should be doing to make the loading panel aware that the request is complete?
I have tried using Response.End() but this causes an error.
Once again, the loading panel is working fine for any other type of requests; it's only the document download that causes the problem.
Any suggestions would be greatly appreciated.
Thanks in advance.
Jim