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
Vinay SinghPosted Jul 5, 2016, 4:49 AM
using System.Web.UIalso addedGridView Export to Word Document (.doc/.docx) in Asp.Net Using C#.Net
Rajeev PunhaniPosted Jul 5, 2016, 4:36 AM
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.