Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

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 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.



This post first appeared on ASPArticles, please read the originial post: here

Share the post

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

×

Subscribe to Asparticles

Get updates delivered right to your inbox!

Thank you for your subscription

×