绑定checkboxlist
04|06|07|08|
for (int i = 0; i < expert.CountryID.Split('|').Length; i++) { for (int j = 0; j < chkCountry.Items.Count; j++) { if (expert.CountryID.Split('|')[i] == chkCountry.Items[j].Value) { chkCountry.Items[j].Selected = true; } } }
用心写代码,不辜负程序员之名。


浙公网安备 33010602011771号