How to export Excel from AJAX in .Net
In order to use the standard response.write method of exporting to excel, you need to force AJAX to make a full postback. Otherwise, parsing errors occur.
To force a postback, assign a control to a trigger and put the export logic in the control click event or in the page.ispostback portion of page_load.
Trigger syntax:
</ContentTemplate>
<Triggers>
<asp:PostBackTrigger ControlID="btnGo" />
</Triggers>
</asp:UpdatePanel>
Trackback URI |