ASP.NET MVC Introduction
-- Learning is not just technology, but also a dream!
- Home
- HTML
- JavaScript
- CSS
- Vue
- React
- Python3
- Java
- C
- C++
- C#
- AI
- Go
- SQL
- Linux
- VS Code
- Bootstrap
- Git
- Local Bookmarks
ASP.NET Tutorial
WP Tutorial
- WebPages Introduction
- WebPages Razor
- WebPages Layout
- WebPages Folders
- WebPages Global
- WebPages Forms
- WebPages Objects
- WebPages Files
- WebPages Helpers
- WebPages WebGrid
- WebPages Chart
- WebPages Email
- WebPages PHP
- WebPages Publish
- WebPages Examples
WP Reference
ASP.NET Razor
- Razor Introduction
- Razor Syntax
- Razor C# Variables
- Razor C# Loops
- Razor C# Logic
- Razor VB Variables
- Razor VB Loops
- Razor VB Logic
ASP.NET MVC
- MVC Introduction
- MVC Application
- MVC Folders
- MVC Layout
- MVC Controllers
- MVC Views
- MVC Database
- MVC Models
- MVC Security
- MVC HTML Helpers
- MVC Publish
- MVC Reference
WF Tutorial
- WebForms Introduction
- WebForms Pages
- WebForms Controls
- WebForms Events
- WebForms Forms
- WebForms ViewState
- WebForms TextBox
- WebForms Button
- WebForms Data Binding
- WebForms ArrayList
- WebForms Hashtable
- WebForms SortedList
- WebForms XML Files
- WebForms Repeater
- WebForms DataList
- WebForms Database Connection
- WebForms Master Pages
- WebForms Navigation
- WebForms Examples
WF Reference
Deep Dive
- Programming Languages
- Software
- Scripting
- Web Services
- Computer Science
- Programming
- Scripting Languages
- Web Design and Development
- Web Service
- Development Tools
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 models:
Web Pages, MVC (Model View Controller), Web Forms.
This tutorial introduces MVC.
Web Pages, MVC, Web Forms
MVC Programming Pattern
MVC is one of three ASP.NET programming patterns.
MVC is a pattern for developing web applications using MVC (Model View Controller) design:
- Model represents the application core (e.g., a list of database records).
- View displays the data (database records).
- Controller handles input (writing to the database records).
The MVC pattern also provides complete control over HTML, CSS, and JavaScript.
MVC pattern defines a web application
with three logical layers:
Business layer (model logic)
Display layer (view logic)
Input control (controller logic)
Model is the part of the application that handles the data logic. Typically, model objects are responsible for accessing data in the database.
View is the part of the application that handles data display. Typically, views are created based on model data.
Controller is the part of the application that handles user interaction. Typically, controllers are responsible for reading data from the view, controlling user input, and sending data to the model.
The MVC layering helps manage complex applications because you can focus on one aspect at a time. For example, you can focus on view design without depending on business logic. It also makes testing the application easier.
MVC layering also simplifies group development. Different developers can work on 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 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)
- A complete web development framework (ASP.NET)
If you have already installed Visual Studio Express, you will learn more from this tutorial.
If you want to install Visual Studio Express, click one of the following links:
- Visual Web Developer 2012 (Windows 7 or Windows 8)
- Visual Web Developer 2010 (Windows Vista or XP)
| After you first install Visual Studio Express, you can install patches and service packs by running the installer again, just click the link again. |
ASP.NET MVC Reference
At the end of this tutorial, we provide a complete ASP.NET MVC reference for your reference.
YouTip