Here is what I am trying to do. I have a one page form. In the middle of the form is a spot for the user to enter a list of name (first, middle, last) into 3 separate text boxes. There is an 'add' button which they click which should:
- Save the name to some kind of temp storage, my first thought was session variable.
- Send the first, last, middle names to the view, so they are displayed in a new row of the table on the form.
All entered rows need to persist and be written to the database when the entire form is submitted. They can not be saved to the DB before hand, because the 'person' record is not in the db until the whole form is submitted.
I have tried creating a List object, thought about session variables and I think I need to use some ajax here. Did I mention I am new to MVC?
Anyway, I am hoping to find out the preferred method for doing this, a good tutorial or write up on how to do it, and I hoping to fully understand the mechanics behind what ever the correct methoid is, as I will need to do this on several occasions in this one app.
I have not included any code here, though I have a bunch of it, because I am not even sure I am going about this correctly. Once we establish the correct way to do it, I will go from there.
Thank you for reading my post.

New Topic/Question
Reply


MultiQuote



|