Posted on: 4/15/2014 1:37:05 AM | Views : 364

Hi, The code below I used can got check box list, but could not show which one checked or not, I don't know why, Thanks, switch (type) { case (Cform.chkboXlist): #region checklist CheckBoxList chkListE = new CheckBoxList(); if (nodes[z].Attributes[XMLLIST].Value != "0") { chkListE.DataSource = list.getListItems(int.Parse(nodes[z].Attributes[XMLLIST].Value), "true"); chkListE.DataTextField = "name"; chkListE.DataValueField = "name"; chkListE.DataBind(); } foreach (ListItem item in chkListE.Items) { if (item.Selected) { // chkListE.Items.Add(chkListE.Items[i].Value); } } vals.SetValue(fieldname + SEARCH, arraycounter, 5); tcSearchCri.Controls.Add(chkListE); tr.Cells.Add(tcSearchCri); break;

Go to the complete details ...