This is a mirror of official site: http://jasper-net.blogspot.com/

A Simple Tutorial on Developing ASP.Net Applications in MVC Pattern

| Monday, May 10, 2010
This article gives a simple tutorial on developing ASP.Net applications in MVC pattern.

Background

One of the recent developments in ASP.Net is the MVC (Model–View–Controller) design pattern. MVC pattern isolates the application logic for the users from input and presentation (GUI).

According to Scott Guthrie, MVC pattern has the following advantages:

One of the benefits of using a MVC methodology is that it helps enforce a clean separation of concerns between the models, views and controllers within an application. Maintaining a clean separation of concerns makes the testing of applications much easier, since the contract between different application components are more clearly defined and articulated.
The MVC pattern can also help enable red/green test driven development (TDD) - where you implement automated unit tests, which define and verify the requirements of new code, first before you actually write the code itself.

The following picture borrowed from Wikipedia shows the MVC pattern:

MVCDiagram.jpg

Read more: Codeproject

Posted via email from jasper22's posterous

0 comments: