Using ViewModel Pattern with MVC 2 Strongly Typed HTML Helpers
- by Brettski
I am working with ASP.NET MVC2 RC and can't figure out how to get the HTML helper, TextBoxfor to work with a ViewModel pattern. When used on an edit page the data is not saved when UpdateModel() is called in the controller. I have taken the following code examples from the NerdDinner application.
Edit.aspx
<%@ Language="C#"…