User1629046272 posted
Hi,
It seems due to "Response.End", to overcome you can include the following javascript in aspx page.
function EnableExport()
{
window.WebForm_OnSubmit = function()
{return true;};
}
Then, call on client click of the asp button as follows <asp:Button ID="btnExport" Text="Export" runat="server" OnClientClick = "EnableExport()" OnClick="btnExport_Click" />
Hope it helps. :)