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 in this series 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.
In today's blog post I'm going to discuss how Controllers
interact with Views, and specifically cover ways you can pass data from a
Controller to a View in order to render a response back to a client.