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
Videos
Revision number 5, Tuesday, February 17, 2009 9:32:24 AM by scott@elbandit.co.uk
You must Login to comment.
|
Wed, May 28, 2008 2:04 PM
by qing02051981
|
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?
|
|
Thu, Dec 18, 2008 1:53 AM
by sirdneo
|
What is the main difference between MVP and MVC.
|
|
Wed, Dec 31, 2008 2:54 AM
by Live Wire
|
is MVP a design pattern
|
|
Fri, Feb 20, 2009 12:42 AM
by varundev4u
|
Reply to Live Wire: MVC - Model View Controller is both a design pattern and an architecture.
|
|
Fri, Feb 20, 2009 1:00 AM
by varundev4u
|
Reply to sirdneo: MVC - (flow is linear)
View(UI)-->Controller(BLL,DAL)-->Model(DB)-->View(UI) MVP - (flow is bi-directional) View(UI)-->Presenter(BLL, DAL)-->Model(DB) An application following MVP is may also be called 3-tier application. 3-tier architecture - 1. Presentation Layer (UI)
2. Logic Layer a. Business Logic Layer b. Data Access Layer
3. Data Layer (DB)
|
|
Fri, Feb 20, 2009 1:04 AM
by varundev4u
|
MVP - (flow is bi-directional)
View(UI)-->>Presenter(BLL, DAL)-->>Model(DB)
|
|
Fri, Feb 20, 2009 1:10 AM
by varundev4u
|
Ha ha, some serious issue with this list-box; its not accepting ''. The opposit of '>'.
Let me try again...........
MVP - (flow is bi-directional)
View(UI)''-->>Presenter(BLL, DAL)''-->>Model(DB)
|
|
Fri, Feb 20, 2009 1:11 AM
by varundev4u
|
Not working :(
|
|
Sun, Feb 22, 2009 8:43 AM
by uniquesaiful
|
Nice introduction
|
|
Sat, Mar 6, 2010 9:15 AM
by Shalem
|
Which is best in terms of Performance and Scalability MVC or MVP?
|
|
Sat, Aug 13, 2011 6:21 AM
by sharktraiger
|
The main point of any of the MV patterns is create single use units which are easier to test and reuse. I don't regard MVP and MVC are mutual exclusive. So they'd be no reason why a Presenter couldn't be referenced inside a Controller. In fact I'd consider that quite wise to have the presenter present and the controller control which and when presenters are implemented.
|