MVC is a pattern for creating Web applications using the MVC (Model View Controller model-view-controller) design; it is one of the three ASP.NET programming patterns.
ASP.NET is a development framework for creating web pages and websites using HTML, CSS, JavaScript, and server scripts.
ASP.NET supports three different development models: Web Pages (Web pages), MVC (Model View Controller model-view-controller), and Web Forms (Web Forms).
This tutorial introduces MVC .
Web Pages | MVC | Web Forms |
MVC is one of three ASP.NET programming patterns.
MVC is a pattern for creating web applications using MVC (Model View Controller model-view-controller) design:
A Model represents the core of the application (such as a list of database records).
View displays data (database records).
The Controller handles input (writing database records).
The MVC pattern provides complete control over HTML, CSS, and JavaScript at the same time.
The MVC pattern defines a web application with three logical layers: Business layer (model logic) Display layer (view logic) Input control (controller logic) |
A model is the part of an application that handles the logic of the application's data. Typically model objects are responsible for accessing data in the database.
View is the part of the application that handles the display of data. Typically views are created from model data.
A Controller is the part of an application that handles user interaction. Typically the controller is responsible for reading data from the view, controlling user input, and sending data to the model.
MVC layering helps manage complex applications because you can focus exclusively on one aspect at a time. For example, you can focus on view design without relying on business logic. It also makes application testing easier.
MVC layering also simplifies group development. Different developers can develop views, controller logic, and business logic simultaneously.
The MVC programming pattern is a lightweight alternative to traditional ASP.NET (Web Forms). It is a lightweight, highly testable framework that integrates all existing ASP.NET features, such as master pages, security and authentication.
Visual Studio Express is a free version of Microsoft Visual Studio.
Visual Studio Express is a development tool tailored for MVC (and Web Forms).
Visual Studio Express includes:
MVC and Web Forms
Drag and drop Web controls and Web components
Web server language (Razor uses VB or C#)
Web server (IIS Express)
Database server (SQL Server Compact)
Complete web development framework (ASP.NET)
If you already have Visual Studio Express installed, you will learn more from this tutorial.
If you would like to install Visual Studio Express, please click on one of the following links:
Visual Web Developer 2012 (Windows 7 or Windows 8)
Visual Web Developer 2010 (Windows Vista or XP)
After you install Visual Studio Express for the first time, you can install patches and service packs by running the installer again by clicking the link again. |
At the end of this tutorial, we provide the complete ASP.NET MVC reference manual for your review.
The above is the introduction to ASP.NETMVC.