July 01, 2010

how to retrieve checkboxlist selected value

*use the following code --
*cbl is the instance of checkboxlist
for (int i = 0; i < cbl.Items.Count; i++)
{
    if (cbl.Items[i].Selected)
    { // bla bla bla ..  }
     
    else { }
}

No comments: