I am attempting to export gridview to excel and articles state that the following should be placed to prevent form error.
public override void VerifyRenderingInServerForm(Control control)
{
}
I have added as shown and get the following error:
inv2excel.VerifyRendingInServerForm(Control); has no suitable method to override.
I am unable to compile with this error. I am using VS2015 and would like some help in resolving my problem.
Thanks

Rajeev PunhaniRank #551 · 4.4K reputationPosted Jul 5, 2016, 12:36 AM EDT
using System.Web.UIalso added.If you are using ascx file, add this code to your page Default.aspx.cs.If the above solution is helpful then,accept the answer.
Vinay SinghRank #604 · 4K reputationPosted Jul 5, 2016, 12:49 AM EDT
using System.Web.UIalso addedGridView Export to Word Document (.doc/.docx) in Asp.Net Using C#.Net