MVC way of handling data input
Posted
by korki
on Stack Overflow
See other posts from Stack Overflow
or by korki
Published on 2009-03-27T22:27:51Z
Indexed on
2010/03/31
12:53 UTC
Read the original article
Hit count: 186
I have a data input module where I add the information of my product and its sub information like:
product basic info product price info product price details
price info and price details are related to product and are lists
In my web forms approach I would store my main product object on the view state and I would populate it's pricing info and details while doing ajax postbacks. This way I can create a compact module that is very user friendly in terms of defining a lot of data from one place without the need to enter these data from seperate modules. And when I am done I would do one product.save() and that would persist all the data to the respective tables on db.
Now I am building similar app on .net mvc framework and pondering on what would be the good way of handling this on mvc.
I don't resonate towards storing all this on client side till I click save. And saving to the db after each action makes me remember the days I was coding on asp.
Will appreciate your inputs on ways to approach this on mvc framework
© Stack Overflow or respective owner