Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Exporting grid data to Excel

Exporting grid data to Excel

Scheduled Pinned Locked Moved ASP.NET
csharpcssasp-netsysadminhelp
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Rahithi
    wrote on last edited by
    #1

    hi, i am trying to export the data from ASP.NEt datagrid to Xls file. i am recieving this error : Control 'dgBillsReviewed__ctl2__ctl0' of type 'DataGridLinkButton' must be placed inside a form tag with runat=server. i am using HTMLtext writer to export the data. i am taking template columns in my grid. if i remove these template columns(when i drctly set the datasource, it is working fine) please let me know the solution... Thanks, Rahi

    If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

    P M R 3 Replies Last reply
    0
    • R Rahithi

      hi, i am trying to export the data from ASP.NEt datagrid to Xls file. i am recieving this error : Control 'dgBillsReviewed__ctl2__ctl0' of type 'DataGridLinkButton' must be placed inside a form tag with runat=server. i am using HTMLtext writer to export the data. i am taking template columns in my grid. if i remove these template columns(when i drctly set the datasource, it is working fine) please let me know the solution... Thanks, Rahi

      If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

      P Offline
      P Offline
      praveenkumar_mca
      wrote on last edited by
      #2

      HI Rahi in ur HTML there is no Form tage so please put form tag and try again may be it will work if ur coding is correct.

      Praveen Kumar.R

      1 Reply Last reply
      0
      • R Rahithi

        hi, i am trying to export the data from ASP.NEt datagrid to Xls file. i am recieving this error : Control 'dgBillsReviewed__ctl2__ctl0' of type 'DataGridLinkButton' must be placed inside a form tag with runat=server. i am using HTMLtext writer to export the data. i am taking template columns in my grid. if i remove these template columns(when i drctly set the datasource, it is working fine) please let me know the solution... Thanks, Rahi

        If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

        M Offline
        M Offline
        manowj
        wrote on last edited by
        #3

        Hi, Confirm that the datagrid is placed in between the

        and

        . Regards, Manowj

        1 Reply Last reply
        0
        • R Rahithi

          hi, i am trying to export the data from ASP.NEt datagrid to Xls file. i am recieving this error : Control 'dgBillsReviewed__ctl2__ctl0' of type 'DataGridLinkButton' must be placed inside a form tag with runat=server. i am using HTMLtext writer to export the data. i am taking template columns in my grid. if i remove these template columns(when i drctly set the datasource, it is working fine) please let me know the solution... Thanks, Rahi

          If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

          R Offline
          R Offline
          Rahithi
          wrote on last edited by
          #4

          hi, thanks for responding to my query. my grid is placed in the Form Tag. still it is giving this error. i am using Item Template to bind the data ...and i am using lables to display the grid data. how to resolve this?? any idea?? Thanks, Rahi

          If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups