Tuesday, November 3, 2009

Learn ASP.NET MVC in 2 hours! An introduction to MVC.NET

There is a new sheriff in town and it's called ASP.NET MVC!
This (fairly) new framework from Microsoft provides the possiblity to write applications that truely follow the MVC design pattern which allows clear separation of data, logic and user interface.
That strict seperation results in better testibility and maintanability.
I was very excited about this framework from the start, but didn't get into the details until now and i found that - once again - a blog series from ScottGu is a very good start for those who want to learn to use ASP.NET MVC.

So here we go: learn MVC.NET in 2 hours (depending on how fast you read of course)!

Part 1: ASP.NET MVC Framework
http://weblogs.asp.net/scottgu/archive/2007/11/13/asp-net-mvc-framework-part-1.aspx

Part 2: URL Routing
http://weblogs.asp.net/scottgu/archive/2007/12/03/asp-net-mvc-framework-part-2-url-routing.aspx

Part 3: Passing ViewData from Controllers to Views
http://weblogs.asp.net/scottgu/archive/2007/12/06/asp-net-mvc-framework-part-3-passing-viewdata-from-controllers-to-views.aspx

Part 4: Handling Form Edit and Post Scenarios
http://weblogs.asp.net/scottgu/archive/2007/12/09/asp-net-mvc-framework-part-4-handling-form-edit-and-post-scenarios.aspx

Thank you Scott!

And for those who can't get enough, there is more!
The latest version - ASP.NET MVC 2.0 - is now available as preview and Brad Wilson wrote a blog series about one of the major new features in this release: Templates.

Part 1: Introduction
http://bradwilson.typepad.com/blog/2009/10/aspnet-mvc-2-templates-part-1-introduction.html

Part 2: ModelMetadata
http://bradwilson.typepad.com/blog/2009/10/aspnet-mvc-2-templates-part-2-modelmetadata.html

Part 3: Default Templates
http://bradwilson.typepad.com/blog/2009/10/aspnet-mvc-2-templates-part-3-default-templates.html

Part 4: Custom Object Templates
http://bradwilson.typepad.com/blog/2009/10/aspnet-mvc-2-templates-part-4-custom-object-templates.html

Part 5: Master Page Templates
http://bradwilson.typepad.com/blog/2009/10/aspnet-mvc-2-templates-part-5-master-page-templates.html

Thank you Brad!

/Ruud