webform checkboxlist回填数据
var checkItem = M_PermissionsBz.yz.GetModelList("UserId=" + userId); foreach (var item in checkItem) { foreach (ListItem listItem in ChkBoxList.Items) { if (item.TreeId.ToString() == listItem.Value) { listItem.Selected = true; } else { continue; } } }