Exporting grid data to Excel
-
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... "
-
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... "
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
-
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... "
-
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... "
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... "