ASP.NET MVC Tutorial
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 modes:
Web Pages (Web pages), MVC (Model View Controller model-view-controller), and Web Forms (Web Forms).
This tutorial introduces MVC.
MVC Programming Pattern
MVC is one of the three ASP.NET programming patterns.
MVC is a pattern for creating web applications using MVC (Model View Controller model-view-controller) design:
- Model (model) represents the core of the application (such as database record list).
- View displays data (database records).
- Controller handles input (writes database records).
The MVC pattern provides full control over HTML, CSS, and JavaScript simultaneously.
| ##MVC pattern defines a web application with three logical layers:
Business layer (model logic) Display layer (view logic) Input control (controller logic) |
Model (Model) is the part of the application that handles application data logic.
Usually the model object is responsible for accessing data in the database.
View (View) is the part of the application that handles data display.
Usually views are created based on model data.
Controller is the part of the application that handles user interaction.
Usually 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.
Web Forms vs. MVC
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 2012/2010
Visual Studio Express is the 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 want 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. |
---|
ASP.NET MVC Reference Manual
At the end of this tutorial, we provide the complete ASP.NET MVC Reference Manual For your review.