I am creating a CheckBoxList in a class file and am using an HTMLTextWriter to render the control.
I\'m using the following code to store the selected values in a s
string items = string.Empty; foreach (ListItem i in CheckBoxList1.Items) { if (i.Selected == true) { items += i.Text + ","; } } Response.Write("selected items"+ items);