TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
At a glance of MVC and MVP
Shirsendu Nandi
May 26, 2011
4.2
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
At a glance of MVC and MVP.
The
MVC
pattern is a UI presentation pattern that generally focuses on separating the UI (View) from its business layer (Model). The pattern separates responsibilities across three components:
The view is responsible for rending UI elements
The controller is responsible for responding to UI actions,
The model is responsible for business behaviors and state management.
In most implementation all three components can directly interact with each other and in some implementations the controller is responsible for determining which view to display this is knpwn as front controller pattern
The
MVP
pattern is a UI presentation pattern based on the concepts of the MVC pattern. The pattern separates responsibilities across four components:
The view is responsible for rending UI elements, the view interface is used to loosely couple the presenter from its view.
The presenter is responsible for interacting between the view/model.
The model is responsible for business behaviors and state management. In The view interface and service layer are commonly used to make writing unit tests for the presenter and the model easier
Here the
View is more loosely coupled to the model. The presenter is responsible for binding the model to the view.
At a glance of MVC and MVP
Next Recommended Reading
How To Migrate MVC 3 Application To MVC 5