开发者

MVC Model View for Complex Object

开发者 https://www.devze.com 2023-01-21 18:25 出处:网络
I am very new 开发者_Python百科to MVC and I have a Model like this User : FirstName : TextBox LastName:TexBox

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

精彩评论

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