ASP.NET MVC Folder Conventions

The ASP.NET MVC framework emphasizes convention over configuration. There are standard locations for each type of file in an ASP.NET MVC project. The ASP.NET MVC application project contains the following folders:

. App_Data—Contains database files. For example, the App_Data folder might contain a local instance of a SQL Server Express database.

. Content—Contains static content such as images and Cascading Style Sheet files.

. Controllers—Contains ASP.NET MVC controller classes.

. Models—Contains ASP.NET MVC model classes.

. Scripts—Contains JavaScript files including the ASP.NET AJAX Library and jQuery.

. Views—Contains ASP.NET MVC views.

When building an ASP.NET MVC application, you should place controllers only in the Controllers folder, JavaScript scripts only in the Scripts folder, ASP.NET MVC views only in the Views folder, and so on. By following these conventions, your application is more easily maintained, and it can be more easily understood by others.

Source of Information : Sams ASP .NET MVC Framework Unleashed

0 comments


Subscribe to Developer Techno ?
Enter your email address:

Delivered by FeedBurner