I wrote an article about Exporting DataGrid to Excel which can be viewed at www.GridViewGuy.com. One question that is asked again and again was how to export the Datagrid which has the link buttons in it. If you try to export a Datagrid with link buttons inside it than it will throw an exception saying "LinkButton server control must be inside the Form tags with runat = server". If you view the html source then you will see that the LinkButton is inside the form tags with runat = server.
This error can be avoided if you hide the LinkButton columns or disable them. I was just wondering that if this is some BUG in Visual Studio or something else.