I am developing a asp.net application with vb codebehind
I have a class called participants and throughout my code I use it to create participant lists (List Of Participant) that I mostly inject in
asp:dropdownlist with the
Items.Add() method. Since I already have the class I was wondering if there is any way I could inject let's say the
participant.FirstName in a
asp:repeater containing a
asp:checkbox. Basically what I am trying to do is to make a list of participants name that the user can select trough checkboxes.
I tried looking for documentation but it is confusing and not helping at all. If I can't do it the same way I do it with the dropdownlists, I would like some help on how to bind my sql database to the repeater and checkbox which i'm pretty sure is possible.
This is the repeater i'm trying to inject to :
<asp:Repeater ID="PartList" runat="server"> <ItemTemplate> <asp:CheckBox ID="selectPart" runat="server" /> </ItemTemplate> </asp:Repeater>
The code behind is in visual basic. Thanks for the help guys :)