Hi,

I am using VB.NET for a web application and am faced with the
following issue - I have a datagrid displayed on the page and have set
the overflow:auto for the div tag in which the grid resides. Because
of this, when I have large amounts of data, the vertical scrollbar
automatically appears.

I have a button called "Export to Excel" which when pressed, exports
the datagrid contents into an excel file using the Grid.RenderControl
(htmlWrite). This functionality was working before I set the
overflow:auto  in the div tag. Now that the scrollbars are visible,
when I click the Export button, I get an error
Control 'GridReport_ctl01_ctl00' of type 'DataGridLinkButton' must be
placed inside a form tag with runat=server.

However, the controls are inside the form tags. Any help is
appreciated.

Thanks.

Reply via email to