In C# how to get all selected checkboxes from the CheckBoxList control?

using foreach loop

from Dotnet-Interviews by JALSA
foreach (ListItem lst in CheckBoxBind.Items)
{
if (lst.Selected)
strSelectedItems = lst.Value;
}

No comments:

Post a Comment