I’d like to have a section of my page where, lets say, some basic contact fields can be entered. Without having to hit the “Save” submit button, the user can add more contacts by hitting a “+” button, which adds more fields to the page.
This would be fairly easy in standard web forms, but I’m a little lost as to how it should work in MVC.
How should I do it, do you think?
I saw a blog post recently by Steve Sanderson that showed one way to do this in ASP.NET MVC 2.
If you look at the blog post, it also links to an example in ASP.NET MVC 1.0.
http://blog.stevensanderson.com/2010/01/28/editing-a-variable-length-list-aspnet-mvc-2-style/