Sunday, 22 January 2017

ASP.NET MVC architecture overview (model, view, controller)

ASP.NET MVC is the part of ASP.NET framework used to create MVC based applications. MVC is the design pattern that divides the application into three main components that are Model, View and Controller. ASP.NET MVC framework is Microsoft’s implementation of MVC for creating ASP.NET web applications based on MVC design Patterns.

MVC Architecture

Each component is described as below.

Model

Model is the abstraction of application’s business logic, rules and the information stored and retrieved by application. Models manage application data. Model executes database queries or performs CRUD operations if needed. Model provides data or information that to be displayed on the Views.

View

View is the HTML mark-up that is sent to the browser to display data to end users. View manages to display information. View displays data by referring model and it does not execute business logic.

Controller

Application flow (user request) is handled by controller. Controller accepts user request and intercepts, identifies appropriate model, execute model and obtained data from model and select view to display the data.

MVC Application Component

Model, View and Controller interaction is shown below.

MVC Application Component

MVC Request Processing

MVC Request Processing

The above figure shows the request processing of MVC application. User request are routed to controller class. Controller process user input and manipulates model and select appropriate view and response is sent to user in HTML format.

Share:

0 comments:

Post a Comment

Email Subscription

Subscribe to our newsletter to get the latest articles directly into your inbox

Blog Archive

BUY FROM AMAZON