YouTip LogoYouTip

Mvc Intro

ASP.NET MVC Introduction

ASP.NET MVC Introduction

-- Learning is not just technology, but also a dream!

ASP.NET Tutorial

WP Tutorial

WP Reference

ASP.NET Razor

ASP.NET MVC

WF Tutorial

WF Reference

ASP.NET Razor VB Logic

ASP.NET MVC Web Application

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 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:

lamp 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.

← Ng Ng BindNg Ng Bind β†’