spFormOnSubmitCalled Not Working for Multiple Buttons

Hi,

Our Requirement was not to refresh the page after button click by the user i.e.

Button event should be fired without any page refresh/post back for two buttons

For this i have updated the properties in both buttons as below

<td colspan="1" align="right"><asp:Button ID="btnExportToView" CssClass="btnExportToView" runat="server" Text="Generate Report" OnClick="btnExportToView_Click" OnClientClick="_spFormOnSubmitCalled = false;_spSuppressFormOnSubmitWrapper=true;"/></td>

<td colspan="1" align="center"><asp:Button ID="btnExportToExcel" CssClass="btnExportToExcel" runat="server" OnClick="btnExportToExcel_Click" Text="Export To Excel" OnClientClick="_spFormOnSubmitCalled = false;_spSuppressFormOnSubmitWrapper=true;"/></td>        

The problem here is,it is working fine with btnExportToView without page refresh/postback.

But it is working with btnExportToExcel,page needs to be refreshed for the event fire.

Please let me know if I am making any mistake here.

Regards,

S

February 23rd, 2015 3:57am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics