you can simply select a checkbox by clicking on it, but as i assume that you don't want just this but also save your results so you can do something with them i copied this small example
foreach (ListItem item1 in CheckBoxList1.Items)
{
if (item1.Selected)
Session["CheckBoxList1"] += item1.Value;
}
because every item is either selected or not, you can check this with a for each loop.
if one of the items is selected you can save the result, like in this case in a session variable, in a variable.
Ivan
|