Getting started with ASP.NET MVC

Welcome to the ASP.NET MVC tutorial series on W3resource. In this tutorial series, you will learn the fundamentals of the ASP.NET MVC 5 framework which will enable us to create, publish and deploy ASP.NET MVC web applications.

In this tutorial series, we will assume little or no knowledge of the ASP.NET MVC framework


To follow along in this tutorial series, you need to have the following software installed and running on your system.

Visual Studio 2012 or later

You can download the Visual Studio, which is the required software for this series using this download link.

Why you should learn ASP.NET MVC

ASP.NET MVC as the name goes is a framework that implements the model-view-controller (MVC) architecture. This is an advanced design patter for building large complex and robust enterprise applications.

This design patter mainly divides the application into three major parts:

Models: The models create classes which can be bound to our database. Here we can declaratively define validation rules, using C# attributes, which are to be applied on the client and server.

Views: This represents the user interface of our application. It is interface from which the user interacts with the application.

Controllers: They route requests to actions implemented as normal C# methods. Data from the request path, query string, and request body are automatically bound to method parameters.

asp.net model view controller

The ASP.NET Model-View-Controller (MVC) architectural pattern separates an application into three main layers of components: Models, Views, and Controllers. This pattern helps to keep our design simple and separates concerns. Using this pattern, user requests are routed to a Controller which is responsible for working with the Model to perform to fulfil user requests. The Controller chooses the View to be returned to the user, and provides it data if required.

Through out this series, we will come along some new terminologies and concepts and we will try to explain these concepts and terminologies in a bit.

Next: Create first ASP.NET MVC web application