help me...html table
-
My website have a table of HTML control, which have a lot of cells. The number of cells,however, is not known before. Each cell has two statements (or value) which is 0 or 1. The prolem is that I don't know how to get the values of the cells on the server-side.
-
My website have a table of HTML control, which have a lot of cells. The number of cells,however, is not known before. Each cell has two statements (or value) which is 0 or 1. The prolem is that I don't know how to get the values of the cells on the server-side.
Hai vtalau To make a HTML table control accesable at server make it HTML server control
(runat=Server).
Then in code behind 1. To itreate through each cellforeach(HtmlTableRow row in Table1.Rows)
{
foreach(HtmlTableCell cell in row.Cells)
{
Response.Write (cell.InnerText);
}
}2. Explicitly get values from a cell
Table1.Rows[0].Cells[0].InnerText
Hope this will solve your problem Thanks and Regards