Stop Responds to the Events in a Page after Exporting in SharePoint

Leave a Comment

Issue with Export to Excel

My Previous article discussed about the how to export the grid view to excel(http://sharepointchampion.blogspot.in/2012/12/exporting-grid-view-to-excel-in.html,But we  have a limitation in that.
After we are done with the export , the Page will stop to responds to any of the Events in a Page
Events will not triggers after we are done with the export .
After so many days of struggling I got to know the resolution

//put this code to make other events enable after the download the excel.
                btnExportToExcel.UseSubmitBehavior = false;
                btnExportToExcel.OnClientClick = "_spFormOnSubmitCalled = false;_spSuppressFormOnSubmitWrapper=true;";

Related Post

0 comments:

Post a Comment