Hello,
It apparently doesn't seem to be an impossible question, but I can't find a way to populate an HtmlTable control (which is accessible from codebehind) with an HtmlTable object already filled with data.
Can anybody help me on this ??
Regards,
EDIT
In the ASP page, I have an HTML table with ID="table1"
In codebehind, I first populate an HtmlTable Object from a List doing like this :
HtmlTable localTable1 = new HtmlTable();
HtmlTableCell cell1 = new HtmlTableCell();
HtmlTableCell cell2 = new HtmlTableCell();
foreach (Evaluation eval in theEvaluations)
{
HtmlTableRow anEvaluation = new HtmlTableRow();
cell1.InnerText = eval.attr1;
anEvaluation.Cells.Add(cell1);
cell2.InnerText = eval.attr2;
anEvaluation.Cells.Add(cell2);
localTable1.Rows.Add(anEvaluation);
}
// And eventually here I should pass the localTable1 to table1