Tags » GridView
Exception - Control GridView1 of type GridView must be placed inside a form tag with runat="server".
As per the server/compiler the “GridView.RenderControl” method is rendered outside the form.
This code resides in a buttonClick event. It could easily be a function with a GridView as a parameter.
It loops through the GridView to convert it to a data table, then sends the data table to a function ExportToExcel.CreateExcelFile.CreateExcelDocument found… 2,090 more words