📜  c# 循环遍历中继器项目 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:10.094000             🧑  作者: Mango

代码示例1
foreach (RepeaterItem item in repeater.Items)
{
    if (item.ItemType == ListItemType.Item || item.ItemType == ListItemType.AlternatingItem)
    {
        CheckBox chk = (CheckBox)item.FindControl("ckbActive");

        bool r = chk.Checked;
    }
}