G
gh
I have a HTML Table with 1 row and 1 column. I have a control I want to
add to the cell at runtime based on a condition. I can get the control
added by creating a row and cell and using the code below:
cell.Controls.Add(aCtl);
row.Cells.Add(cell);
tblDisplay.Rows.Add(row);
Is there a way to add the control to the row and cell already setup in
the table? When I try, tblDisplay.Controls.Add(aCtl), I get the
following error message:
'HtmlTable' cannot have children of type 'display_ascx'.
TIA
add to the cell at runtime based on a condition. I can get the control
added by creating a row and cell and using the code below:
cell.Controls.Add(aCtl);
row.Cells.Add(cell);
tblDisplay.Rows.Add(row);
Is there a way to add the control to the row and cell already setup in
the table? When I try, tblDisplay.Controls.Add(aCtl), I get the
following error message:
'HtmlTable' cannot have children of type 'display_ascx'.
TIA