Republished with Permission - Original Article
The last few weeks I have been working on a series of blog
posts that cover the new ASP.NET MVC Framework we are working on. The
ASP.NET MVC Framework is an optional approach you can use to structure your
ASP.NET web applications to have a clear separation of concerns, and make it
easier to unit test your code and support a TDD workflow.
The first post in this series built a simple e-commerce product
listing/browsing site. It covered the high-level concepts behind MVC, and
demonstrated how to create a new ASP.NET MVC project from scratch to implement
and test this e-commerce product listing functionality. The second post drilled deep into the URL routing architecture
of the ASP.NET MVC framework, and discussed both how it worked as well as how
you can handle more advanced URL routing scenarios with it. The third post discussed how Controllers interact with Views,
and specifically covered ways you can pass view data from a Controller to a
View in order to render a response back to a client.
In today's blog post I'm going to discuss approaches you can
use to handle form input and post scenarios using the MVC framework, as well as
talk about some of the HTML Helper extension methods you can use with it to
make data editing scenarios easier. Click
here to download the source code for the completed application we are going
to build below to explain these concepts.