string allTextBoxValues = "";
foreach (Control c in tableid.Controls)//table control
{
foreach (Control childc in c.Controls)//table row
{
foreach (Control dd in childc.Controls)//table cell
{
if (dd is TextBox) //controls
{
allTextBoxValues += ((TextBox)dd).Text + ",";
}
}
}
}
foreach (Control c in tableid.Controls)//table control
{
foreach (Control childc in c.Controls)//table row
{
foreach (Control dd in childc.Controls)//table cell
{
if (dd is TextBox) //controls
{
allTextBoxValues += ((TextBox)dd).Text + ",";
}
}
}
}