日期:2014-05-17 浏览次数:20719 次
for (int i = 0; i < Repeater1.Items.Count; i++)
{
DataTable dtm = GWDP.GetMenuShowMessage();
for (int j = 0; j < dtm.Rows.Count; j++)
{
Label CKID = (Label)Repeater1.Items[i].FindControl("CheckBoxID");
if (dtm.Rows[j]["MENU_ID"].ToString() == CKID.Text.ToString())
{
CheckBox chk = (CheckBox)Repeater1.Items[i].FindControl("cboSelectSingle");
chk.Checked = true;
}
}
}