Hi All,
I have below code:
how to get checked checkboxs in dynamically created checkboxList.
DataSet dsCAT = new DataSet();
dsCAT = returnCat();
TableCell cellchk = new TableCell();
TableRow rowchk = new TableRow();
CheckBoxList chkfld = new CheckBoxList();
chkfld.ID = "checkbox" + 1;
for ( d = 0; d < dsCAT.Tables[0].Rows.Count; d++)
{
string catname = dsCAT.Tables[0].Rows[d]["Description"].ToString();
chkfld.Items.Add(catname);
cellchk.Controls.Add(chkfld);
rowchk.Cells.Add(cellchk);
}
chkme.Rows.Add(rowchk);
Regards,
Jayesh(From India,Mumbai)
Go to the complete details ...