ASP.NET MVC 2.0 - IList<T> CheckBoxes
问题 What is the best way to handle this: class Option { int id; string name; } class QuoteItem { IList<Option> options; } class QuoteViewModel { IList<Option> allOptions; QuoteItem quoteItem; } Basically, I have all the available options in allOptions . I want to have a checkbox that puts another Option (even if its just its id ) into the QuoteItem.options list when it is checked. How would I accomplish this? Would it best be an IList<bool> and bind it after the fact? 回答1: I suggest you take look