MVC Model View for Complex Object
I am very new 开发者_Python百科to MVC and I have a Model like this
User :
FirstName : TextBox
LastName : TexBox User Commitee : [CheckBox Textbox] [CheckBox Textbox] [CheckBox Textbox]I store if user is in committee in a separate table.I need to insert selected check box value and related text box to database.How can I achieve this ? Can this be possible with using EditorTemplate ?
Thanks
Have a look at this answer here. It is the same as what you're looking for with the check boxes being bound to a child collection.
精彩评论