Creating Areas in ASP.NET MVC Application

Published on April 27, 2013 by abundantcode

Filed under ASP.NET

Last modified April 27, 2013

Print this page

rate 1 star rate 2 star rate 3 star rate 4 star rate 5 star
Your rating: none, Average: 0 (0 votes)

This article have been viewed 3198 times

The ASP.NET MVC Framework has the concept of “Areas” which allows the developers to organize the functional module of the web application.

For Example, the modules like administration, student’s data, exam/test, results can be each area in the Application.

The Area in the ASP.NET MVC project has a folder structure which includes controllers, views, Models etc. and allows the developers to keep them separate from other modules.

How to create Area in ASP.NET MVC Application?

Follow the below steps to create Area in ASP.NET MVC Application.

1. Right click on the ASP.NET MVC Project in the Visual Studio 2012 Solution explorer, select Add -> Area.

Creating Areas in ASP.NET MVC Application

2. In the “Add Area” dialog, enter the name of the area and click Add button. In this example, let’s create the area with abundantcodepayroll as the area name.

Creating Areas in ASP.NET MVC Application

3. Now, you will see that the folder areas will be added to your ASP.NET MVC solution along with the newly created area name.

Creating Areas in ASP.NET MVC Application

0saves
If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.

1 Comment

  1. RegisterArea in ASP.NET MVC | Abundant Code
    April 27, 2013 - 11:37 pm

Leave a Comment


x

You might be Interested in these Posts

How to return Json instead of XML in ASP.NET Web API ?

When you make a call to the ASP.NET Web API action method and notice this in Google Chrome browser ,...

How to Add Web API to existing ASP.NET Web Forms Project ?

In one of the previous posts , we saw how to add the WebAPI to the existing ASP.NET MVC project. Wel...

How to Add Web API to existing ASP.NET MVC Project ?

There are times when you might want to add Web API project to one of your existing ASP.NET MVC proje...