Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jan 26, 2013 01:59 PM by bretthargreaves
Jan 25, 2013 06:38 PM|LINK
Is there a better way to do things like this, instead of just passing the Model (contains lots of extra stuff) straight to the view? I'm getting tired of all the convestions!!
Model -> ViewM -> view -> ViewM ->Convert to Model -> Save
Jan 25, 2013 07:46 PM|LINK
sure, thats what custom binders are for. you can also supply your own html helper to bind to the model. also there is no reason the model passed to the view, has to match the post model bound to on the controller. rememeber the postback data is just a form
post of name/value pairs.
Jan 26, 2013 07:48 AM|LINK
It is just ViewModel to View, via the controller.
The others are your choice.
Please see http://msprogrammer.serviciipeweb.ro/2010/03/29/asp-net-mvc-orm-and-viewmodels/
Jan 26, 2013 01:59 PM|LINK