Hey guys,
I'm trying to export a GridView to excel using the example from the link How to Export GridView contain to Excel file using C# in ASP.Net but it is returning the error:
An exception of type 'System.Web.HttpException' occurred in System.Web.dll but was not handled in user code
Additional information: Control 'ContentPlaceHolder1_GridView1' of type 'GridView' must be placed inside a form tag with runat=server.
How can I resolve this?
Grateful,
Ilano