locked
Gridview data export to excel RRS feed

  • Question

  • User-1660409334 posted

    Hi,

    I want to export gridview data into excel sheet.

    I am using master page. And i added gridview control into contentplaceholder.

    When i export data then getting error "Control 'cphMain_uxSalutation1_gdvList' of type 'GridView' must be placed inside a form tag with runat=server.".

    Plz help me how to solve this.

    thnaks

    Viky

    Monday, June 20, 2011 6:04 AM

Answers

  • User3866881 posted

    Hi,

    I want to export gridview data into excel sheet.

    I am using master page. And i added gridview control into contentplaceholder.

    When i export data then getting error "Control 'cphMain_uxSalutation1_gdvList' of type 'GridView' must be placed inside a form tag with runat=server.".

    Plz help me how to solve this.

    thnaks

    Viky

    Hello:)

    Please refer to this and I think you can solve your problem soon!

    http://mattberseth.com/blog/2007/04/export_gridview_to_excel_1.html

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, June 21, 2011 10:08 PM

All replies

  • User-1367372477 posted

    Hi,

    You might try to link into below link.

    http://geekswithblogs.net/azamsharp/archive/2005/12/21/63843.aspx

     

    Monday, June 20, 2011 6:08 AM
  • User-1660409334 posted

    Plz Suggest me

    How to use this function 

    public override void VerifyRenderingInServerForm(Control control)
        {

            
    // Confirms that an HtmlForm control is rendered for the
            
    specified ASP.NET server control at run time.

        }

    Monday, June 20, 2011 6:28 AM
  • User3866881 posted

    Hi,

    I want to export gridview data into excel sheet.

    I am using master page. And i added gridview control into contentplaceholder.

    When i export data then getting error "Control 'cphMain_uxSalutation1_gdvList' of type 'GridView' must be placed inside a form tag with runat=server.".

    Plz help me how to solve this.

    thnaks

    Viky

    Hello:)

    Please refer to this and I think you can solve your problem soon!

    http://mattberseth.com/blog/2007/04/export_gridview_to_excel_1.html

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, June 21, 2011 10:08 PM