I have a project for which I want to register which members of a group has attended a meeting on a certain date.
The functionality I want is:
- You choose which group had a meet in a listbox.
- All the members of the group show in another listbox and they each have a checkbox.
- You mark each member who attended by clicking in the checkbox.
- You select a date from calendar-view.
- I then want to send each ID of the people attended to a SQL-query loop that inserts this into the DB.
My problem is that I'm stuck trying to create checkboxes dynamically for each object "member" in my List. Is there a smart way to do this?
I figure that I will then loop through each selected checkbox in the group of checkboxes and select the member-id from each member checkbox.checked and pass this to the SQL-query.
All input is welcome as I'm kinda stuck here. :-)