kamlesh rai

kamlesh rai

  • 1.6k
  • 54
  • 442

Checklist value

Oct 31 2018 7:28 AM
i want to add asp checklist value in array
for (int i = 0; i < CheckBoxList1.Items.Count; i++)
{
if (CheckBoxList1.Items[i].Selected)
cb += CheckBoxList1.Items[i].Text.ToString() + ","; 
}
for (int i = 0; i < CheckBoxList2.Items.Count; i++)
{
if (CheckBoxList2.Items[i].Selected)
cb2 += CheckBoxList2.Items[i].Text.ToString() + ","; 
 
i have differnt string value in check list i want store them 
 

Answers (1)