MVP Pattern

 Rate It (6)

MVP (Model View Presenter) Framework

The MVP pattern is an Architecture Pattern used to build ASP.net applications.  It refers to splitting up the responsibilities for gathering, displaying, and storing data from a web page into separate objects: a Model object, a View object, and a Presenter object.  The View is often an interface which is then implemented by an ASP.net web page; the Model is a business object.  The Presenter negotiates the transfer of data between the other two objects.  The MVP pattern descends from the Model View Controller pattern that was originally described in Smalltalk.

The advantage of having the View be an interface is that it can be implemented by many different presentation models other than a web page, such as a Fitnesse page, an NUnit mock class, or a Windows application.

Tutorials

 Articles

Revision number 2, Wednesday, February 27, 2008 9:28:37 PM by
This is not the most up to date version of this article. The most recent version can be found here.

Comments

Something came across my mind. A presenter joins the View and Model. - What is the benefit of having a presenter? - Why can't the view talk to the model immediately?

Shortcuts

Table of Contents

Top Wiki Contributors

(last 30 days)

  1. mbanavige (5)
  2. SGWellens (4)
  3. maartenba (2)
  4. rami_nassar (2)
  5. stiansol (2)
  6. MisterFantastic (2)
  7. satish1.v (1)
  8. raklos (1)
  9. mosessaur (1)
  10. Jos Branders (1)

Advertise Here

Microsoft Communities
Page view counter