I need to display a list of checkboxes, 3 per html table row.
The label and value of each checkbox will come from an enumeration.
What is the best way to construct this and display it in webforms?
I’m thinking of just using a literal control, and generating the the controls inside of an htmltable object.
Comments?
I’d consider a decorator pattern with data.
You would then make a method that gets that data like so:
Then you can simply call that method on any enum with the description attributes and get an
IEnumerable<ListItem>to use when binding.