Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
At a glance of MVC and MVP
WhatsApp
Shirsendu Nandi
13y
4.2
k
0
0
25
Blog
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
Up Next
How To Migrate MVC 3 Application To MVC 5
Ebook Download
View all
Hands on ASP.NET GridView
Read by 16.9k people
Download Now!
Learn
View all
Membership not found