Hi all,
how to access the html table cell value in serverside. can any one tell me pls its urgent.
Hi all,
how to access the html table cell value in serverside. can any one tell me pls its urgent.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Ravishankar SinghPosted Apr 7, 2011, 1:31 PM
HtmlTable dTable = new HtmlTable();
int tRows;
int tCells;
for (tRows = 0; tRows < 5; tRows++)
{
HtmlTableRow dTRow = new HtmlTableRow();
for (tCells = 0; tCells < 4; tCells++)
{
HtmlTableCell dTCell = new HtmlTableCell();
dTCell.InnerText = "Row:: " + Convert.ToString(tRows + 1) + " Col:: " + Convert.ToString(tCells + 1);
dTRow.Controls.Add(dTCell);
}
dTable.Controls.Add(dTRow);
}
Panel1.Controls.Add(dTable);
You can use the revrese for accessing the table cell value.. :)Suthish NairPosted Mar 25, 2011, 4:01 AM
search for sample..
Madha VPosted Mar 25, 2011, 1:25 AM
Amit ChoudharyPosted Mar 25, 2011, 1:17 AM
Just place runat="server" in the table tab.
for e.g.
And you'll be able to access the table in your c# code :))
Thanks