Click to See Complete Forum and Search --> : Looping through Controls collection


TSmooth
August 14th, 2005, 12:43 PM
I have a repeater control that has this for the <ItemTemplate> tag: <asp:CheckBox Runat=server Text=<%#Container.DataItem("MemberName")%>></asp:CheckBox><br>.
</ItemTemplate>

How can I, at the click of a button, loop through all of the checkboxes added and get their Text property or any of their properties for that matter because I need to know which ones were checked? I tried going through the controls collection of the panel these are on but no luck so far. Any ideas?