Home > DeveloperSection > Articles > Start with ASP.NET MVC 4

Start with ASP.NET MVC 4

0 Comment(s)
 1849  View(s)
Rate this:

Start with ASP.NET MVC 4

Hi everyone in this post I will teach you the basics of asp.net mvc4 web application. How to start with asp.net mvc4.

In my previous post I’ll intruduced about CRUD Operations Using Entity Framework Code-First Approach


Asp.net mvc4 is a powerful framework for developed robust, scalable web application. You will learn the fundamental of mvc application as well as some of new features of Asp.Net MVC4, such as mvc routing, new user management and authentication system, bootstrap, angular js etc.

Creating your First Application:

Open visual studio 2012 >> File >> New Project, then select visual c# on the left, then web and then select ASP.NET MVC 4 Web Application. Name your project “StudentManagement” and then click ok.

In the New ASP.NET MVC 4 Project dialog select Empty and then click ok

Figure 1:  Project Type


Empty: The empty template created the minimum references and resources required to run an asp.net mvc application. As you can see below image Models, Controllers, App_Data are completely empty folder and view folder only contain web.config file and Global.asax file and web.config. App_Start folder contains 3 configuration files (FilterConfig.cs, RouteConfig.cs and WebApiConfig.cs).

Figure 2: Structure of the project

Click F5 to start debugging. F5 causes visual studio to start IIS Express and run your web application. Visual studio then launches a browser and opens the application. This application runs successfully but not give any output on browser and because our application not found any resource if you want to any output you have to add controller inside Controller folder.

HomeController.cs Code:

public string Index()


    return "ASP.NET MVC 4 for Beginners";



Now runs our application and found desire output on browser.



In this article you learn how to build a simple web application in ASP.NET MVC 4. In my next Article I’m explain about Working with Controller in MVC 4

Don't want to miss updates? Please click the below button!

Follow MindStick