In an ASP.NET 4.0 web application, I have a user control that is wrapped with an UpdatePanel (see code below).
<asp:UpdatePanel ID="UpdatePanel5" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<UC:MyCustomCtrl ID="customCtrl" runat="server" />
</ContentTemplate>
</asp:UpdatePanel>
Obviously, this is great for every ASP.NET control that causes a postback in my user control because it makes it asynchronous. However , there is one process for which this does not work!
I have an ASP.NET (Create Report) button in a user control that makes an asynchronous request to the server. Then the server creates an Excel spreadsheet, and then puts the table in HttpResponse to send back to the client browser so that they can open / save it. However, it explodes at this point, because the server request is asynchronous and apparently you cannot put the binary in the HttpResponse during the asynchronous request.
How do I get around this?
Jagd source
share