ASP. net mvc 4 Application folder

Source: Internet
Author: User
Tags configuration settings

App_Start

It has configuration classes to reduce clutter code in the Global. asax

It contains the configuration class to reduce the clutter of code in Global. asax

Application_Start Method

The App_Start folder contains the following files:

AuthConfig. cs: Related to security settings, including sites for OAuth login.

Security Settings include authorized logon to the website.

BundleConfig. cs: Related to register bundles for the bundling and minification

For bundling and small registration bundle

FilterConfig. cs: To register global MVC filters. (by default handleerrorattriters is registered)

Used to register global MVC filtering. (HandleErrorAttribute is registered by default)

RouteConfig. cs: Related to MVC Route configuration

Configuration of MVC Routing

WebApiConfig. cs: Used to register Web API routes and configuration settings.
Used to register Web API routing and configuration settings.

Also, this folder helps to use nuget packages that use Application_Start code, without touching Global. asax. cs.
Similarly, this folder helps the NuGet package use the Application_Start code without being exposed to Global. asax. cs.

Areas

An MVC structure inside the application to partition our web application into smaller parts.

An MVC Architecture splits our web applications into smaller parts in applications.

Content

To put CSS and other static contents

Store CSS and other static Directories

Controllers

Contains the controller classes

Include control class

Images

For images, It is being referenced from the Content \ Site.css by default.

For the Imanges folder, It is referenced by Content \ SIte.css by default.

Models

Contains view model and domain model classes.

Including view model and domain model class

Scripts

Stores all JavaScript libraries and files

Store all Javascript libraries and files

Views

Related to the display of the application (UI ).

Display the application interface

/Views/Shared

This directory holds layouts (master-page in-terms of web forms) and views which is used to store views shared between controllers

This directory holds the layout (web form homepage) and views used to store views shared between control classes.

/Views/[FolderName]

Views or Partial Views specific to that folder or single controller like Account folder is specific to Account controller for registering and logging in to user accounts.

The view or Partial view is for folders or individual controls. For example, the Account folder is for the Account Control class to register and print user Account logs.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.