The ASP.NET MVC is a Model-view controller framework which Microsoft added to ASP.NET.
It allows software developers to build a Web application as a composition of three roles:
Model, View and Controller.The framework was designed to make it easier to implement software
design principles and patterns when building web applications.
-
Model An MVC model contains all of an application's logic that is not contained in a View or Controller.
The model includes all of an application's validation, business, and data access logic.
The MVC Model contains model classes that model objects in the application's domain.
- View An MVC view contains HTML markup and renders a user interface.
- Controller An MVC controller interacts with MVC Models and Views to control the flow of application.
So the relationship between the Model, View and Controller can be described as:
The ASP.NET MVC framework provides the following features:
- It provides separation between the UI, Business and the UI-handling logic.
- It is a very good platform for creating unit-testable applications that are maintainable in the long run.
- The components of the ASP.NET MVC framework are designed so that they can be easily replaced or customized.
- It supports URL naming patterns that work well for search engine optimization (SEO).
- It Supports for existing ASP.NET features such as authentication, URL authorization, membership/roles, data caching and session.
Summary
In this article, we explored the ASP.net MVC framework and its features. In next article we will look at MVC application execution process.