Export excel page of suspended animation

If it is asp.net page

public override void VerifyRenderingInServerForm(Control control)    {}

If it is Sharepoint web part:

<asp:Button ID="btnExportToExcel" runat="server" Text="Export to Excel" onclick="btnExportToExcel_Click" OnClientClick="_spFormOnSubmitCalled = false;_spSuppressFormOnSubmitWrapper=true;" />

 

Reproduced in: https: //www.cnblogs.com/JessZhou/p/7839899.html

Guess you like

Origin blog.csdn.net/weixin_33889665/article/details/93296627