How to make dynamic HTMLtable cell clickable?

199 Views Asked by At

I have a dynamic Htmltable that contains several cells and i need to make each cell clickable

row = new HtmlTableRow();
for (int j = 1; j <= column_days; j++)
{
    label = new Label() { ID = "lbl"+j.ToString() };
    label.Text = label.ID;
    cell = new HtmlTableCell();                  
    row.Cells.Add(cell);

}
table1.Rows.Add(row);

After i generated this on PageLoad, i need to make each cell clickable. Any idea?

0

There are 0 best solutions below