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???
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Raaj KumarPosted Feb 23, 2010, 12:49 AM
try this
foreach (ListItem item in chkLanguagesKnown.Items)
{
if (item.Selected)
{
//Add you logic here
}
}
Regards,
raaj
RujutaPosted Feb 23, 2010, 12:03 AM
Lalit MPosted Feb 22, 2010, 11:55 PM
another here
http://www.java2s.com/Code/CSharp/GUI-Windows-Form/Getselectedcheckboxlistitems.htm