#48 Sharepoint RadGrid Export Affecting Subsequent Posts
To correct the issue where your export to Excel stops any further postbacks add the following code to
your image button or button that invokes the export.
OnClientClick=”_spSuppressFormOnSubmitWrapper = true; _spFormOnSubmitCalled = false;”
<asp:ImageButton ID="ibExcelExport" runat="server" CausesValidation="False" ImageUrl="../images/ExcelExport.jpg" onclick="ibExcelExport_Click" OnClientClick="_spSuppressFormOnSubmitWrapper = true; _spFormOnSubmitCalled = false;" />
Advertisement
Thank you so much for ur Code! It saves my day!!!
Warm wishes,
aki
Aki
February 7, 2012 at 9:50 am