foreach (ListViewDataItem item in lvwFields.Items) { PlaceHolder ph = (PlaceHolder)item.FindControl("plhldFields"); foreach (Control c in ph.Controls) { if (c is CheckBox) { if (((CheckBox)c).Checked) { //Perform some action //Here i am getting c.ID //How to find its text? } } else if (c is HtmlTable) { foreach (Control TabCtrl in c.Controls) { if (TabCtrl is HtmlTableRow) { foreach (Control TabCell in TabCtrl.Controls) { if (TabCell is HtmlTableCell) { foreach (Control chk in TabCell.Controls) { if (chk is CheckBox) { if (((CheckBox)chk).Checked) { //Perform some action //Here i am getting chk.ID //How to find its text? } } } } } } } } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)