ASP.NET MVC Introduction
The MVC (Model-View-Controller) is an application development pattern that separates an application into three main components:
Model: Model is a part of the application which implements the logic for the application's data domain. It is used to retrieve and store model state in a database like SQL Server database. It also use for business logic separation in the application.
View: View is a component that forms the application's user interface. It is uses to create web pages for the application. An example would be an edit view of a Products table that displays text boxes, drop-down lists and check boxes based on the current state of a Product object.
Controller: Controller is the component which handles user interaction. It works with the model and select view to render the web page. In an MVC application, the view only displays information whereas the controller handles and responds to user input and requests.
The following image represents the ASP.NET MVC Design Pattern:
This design pattern is a lightweight framework that is integrated with various features such as master pages and membership based authentication. It is defined in the System.Web.Mvc assembly.
Advantages of ASP.NET MVC Framework
This approach provides the following advantages.