I have an MVC form where I need to scroll through a set of database records and continue to display partial views containing data.
This is an input form. Meaning, if the database contains 50 records, each of which has a "FirstName", how do I handle this? There will be 50 input fields "FirstName".
I am using Entity Framework. I have not had to use this template in the past, and I'm not sure how it handles correctly in MVC5.
The parent class takes a List <> of these things, and then loops and displays partial views containing the form. BeginForm () is in the parent view. Particles are taken in special objects from the <> list for use as form fields.
My question relates to a handle to handle this on the server, which means the HttpPost method. Do I have a handle to the original List <> object that was passed to the parent view? Will it contain all updates automatically for every child contained inside?
source
share