Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# loop through repeater items

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;
    }
}
 
PREVIOUS NEXT
Tagged: #loop #repeater #items
ADD COMMENT
Topic
Name
3+6 =