I would like to dynamically generate a checkbox in a web form for each value(row) of a single column in a database.  Can someone give me an example or a snippet of code that would do this?  For example if I have a table with a type of fruit in a column named "fruit" like this:
fruit ----- banana strawberry grape lemon I'd like to see checkboxes like this:
[]banana     []strawberry    []grape   []lemon

and if I inserted or deleted a row from the fruit table, I would want the checkboxes to reflect this once I loaded the page again (so that's what I mean by dynamic).

Thanks in advance for reading this and responding if you can help.

Go to the complete details ...