Visual webpart gridview control Export to Excel RRS feed

  • Question

  • Hi,

    I am trying to implement export to excel using visual webpart, first I got the error put "I am getting error on GridView1.RenderControl(htw); line and the error is Control 'ctl00_ContentPlaceHolder1_GridView1' of type 'GridView' must be placed inside a form tag with runat=server. ",And when I am using public override void VerifyRenderingInServerForm(Control control)
    /* Confirms that an HtmlForm control is rendered for the specified ASP.NET
         server control at run time. */


    I am getting error that it cannot be overridden .How to resolve this issue

    Saturday, April 18, 2015 2:41 AM


All replies