Asp.net MVC 4, How to make Master Detail in the same form

I am using entity Framework 4.2 and MVC 4

I got this model / database structure

UserInformation
UserID (PK)
FirstName
LastName
Email


UserFavoriteColor
Favor (PC)
Color
Why
UserID (FK)

Is it possible in one Create Controller Action to populate the UserInformation table and then populate UserFavoriteColor.

I know that I could complete this in two steps by creating 2 section sections. But that is not what I want.


enter image description here

+5
source share
1 answer

, jQuery . , , , , :

http://ivanz.com/2011/06/16/editing-variable-length-reorderable-collections-in-asp-net-mvc-part-1/

, , "". post, , .

, .

add-new, , 3 ( ). , .

: , .

+7

All Articles