L
luisg
I am having some difficulty getting a checkboxlist control to determine
which checkboxes are checked. Here is a code sample from the event that
should read it:
private void addToSelectedGroups()
{
foreach(ListItem item in cblGroups.Items)
{
if (item.Selected)
{
// do something
}
}
}
The problem is that item.Selected is always false regardless of whether
the box is checked.
thanx
Luis
which checkboxes are checked. Here is a code sample from the event that
should read it:
private void addToSelectedGroups()
{
foreach(ListItem item in cblGroups.Items)
{
if (item.Selected)
{
// do something
}
}
}
The problem is that item.Selected is always false regardless of whether
the box is checked.
thanx
Luis