0

I have checkboxlist. User is able to check multiple checkboxes.I want to fetch checkboxe's text.So I wrote like this.But my event(CheckBoxList1_SelectedIndexChanged) does not get fire.I already made checkboxlist's autopostback = "true".

string str = string.Empty;

for (int i = 0; i < CheckBoxList1.Items.Count; i++)
{
if (CheckBoxList1.Items[i].Selected)
{
str = CheckBoxList1.Items[i].Text;
str = str +',';
}
}
str = str.TrimEnd(',');
Jui Test
  • 2,399
  • 14
  • 49
  • 76

0 Answers0