开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜