In this chapter we will know each of the folders available in MVC Application.
App_Data:
We can use this folder for putting private data,such as Data Base ,XML etc.
App_Start:
This folder contains some core
configuration settings for your
project, including the definition of
routes and filters and content
bundles.
Content:
This is the folder where we are putting our CSS or Images and any other static data.
Controllers:
This is the folder where we can create our C# controller classes.
Models:
This is the folder where we will put our domain models and simple view models.
bin:
This folder having the compiled assembly for our MVC
application, along with
any referenced assemblies that are
not in the Global Assembly Cache (GAC).We will not see this folder unless we click show all option in Solution Explorer.
Views:
This is folder where our View and Partial Views grouped together in folders after we created a controller.For example if we create a controller called MyTest then MVC application will create a folder called MyTest in Views where we can add views and partial views associated with this controller.
Views/Shared:
This is the folder where we can put our Layouts(like master pages) and other views.This Layouts and views not related to single controller.
Scripts:
This is the folder where we can add java-script libraries.Visual Studio automatically adds few Jquery and other scripts.
Views/Web.config:
This is not a Web.config what we think like ASP.NET Web Forms. It contains the required configurations to make views
work with ASP.NET.
Global.asax:
Its code-behind
class (Global.asax.cs) is the place to
register routing configuration, as well
as set up any code to run on
application initialization or
shutdown etc.It is the global class for MVC application.
Web.config:
This one is the configuration file for our application.It is same like as Web Forms Web.config.