Asp.net CheckBoxList Codebehind Değer Atama
19 Ocak 2021 / 15:07
Burak
Merhabalar,
Asp.net CheckBoxList’de codebehind tarafından checboxları seçmek için aşağıdaki kodları kullanabilirsiniz.
1 2 3 4 5 6 7 8 9 10 |
foreach (string n in a["yetkiler"].ToString().Split(',')) { for (int m = 0; m < checkboxlist.Items.Count; m++) { if (checkboxlist.Items[m].Value == n) { checkboxlist.Items[m].Selected = true; } } } |
Bu Yazılarıda Okuyabilirsiniz...
Bir cevap yazın