jeudi 26 mars 2015

How can I get value in values of item of checkboxlist ? c#

I want to match the values from reader and checkbox to change selected values of item of checkboxlist. But it does not work and I don't know what to do? Thanks.



while (reader.Read())
{
CheckBoxList1.Items.FindByValue(reader["malzeme_id"].ToString()).Selected = true;
}




Aucun commentaire:

Enregistrer un commentaire