Hi, all
I have a CheckBoxList in my aspx page. I add items to this list during run time. Now how to get the list of the selected checkboxes from the list.
Any ideas???
CheckBoxList selection
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Raaj KumarRank #7,836 · 233 reputationPosted Feb 22, 2010, 7:49 PM EST
try this
foreach (ListItem item in chkLanguagesKnown.Items)
{
if (item.Selected)
{
//Add you logic here
}
}
Regards,
raaj
Lalit MRank #1,186 · 1.5K reputationPosted Feb 22, 2010, 6:55 PM EST
another here
http://www.java2s.com/Code/CSharp/GUI-Windows-Form/Getselectedcheckboxlistitems.htm
Rujuta133 reputationPosted Feb 22, 2010, 7:03 PM EST