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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Amit ChoudharyRank #145 · 15.8K reputationPosted Mar 24, 2011, 9:17 PM EDT
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
Madha V11 reputationPosted Mar 24, 2011, 9:25 PM EDT
Suthish NairRank #92 · 22.8K reputationPosted Mar 25, 2011, 12:01 AM EDT
search for sample..
Ravishankar SinghRank #669 · 3.6K reputationPosted Apr 7, 2011, 9:31 AM EDT
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.. :)