i have one html table "table "and added controls it at run time as :
HtmlTableRow tabelrow = new HtmlTableRow();
HtmlTableCell tablecell = new HtmlTableCell();
Label lbl = new Label();
tablecell.Controls.Add(lbl);
then i want to get each controls by using foreach
such as (foreach control c in table.controls)
or (foreach control c in tablecell.controls)
but its not working.
Tried the following. I can get the controls with the ID but you need to assign an ID to it first.
What exactly are you trying to do? Please elaborate.