asp.net MVC

What is an area in asp.net mvc?

What is an area in asp.net mvc?, someone asked me to explain?

If Application contains a large number of controllers it is difficult to manage. The asp.net area simplifies large mvc web application in to smaller groupings.

Area mvc example:

If you are creating news blog, the application divided into areas such as Admin and dashboard blog. Each area represents separate functionalities.

areas in mvc

Creating Area in mvc:

You can create area by right click on the mvc application project solution and clicking on the areas as shown in figure.

Creating Area in mvc

Dashboard area for the blog:

Asp.net mvc dashboard area

It is used to display the blog posts.

Admin area for the blog:

It is for creating and managing the blog posts.

Asp.net mvc admin area

if you want to know how to use html beginform using areas in mvc asp.net click here .

 

Post your comments / questions