The use of App_Start() folder in MVC?
There are 5 files in this folder.
- AuthConfig
- BundleConfig,
- FilterConfig,
- RouteConfig,
- WebApiConfig.
Used to configure security settings, including sites for OAuth login.
BundleConfig.cs:
This is used to create and register bundles for CS and JS files.By default various bundles are added in this file including jQuery,jQueryUI,jQuery validation,Modernizr and Site CSS..
FilterConfig.cs-
This is used to create and register global MVC filter error filter,action filter etc.By default it contains HandleErrorAttribute filter.
RouteConfig.cs-
This is used to register various route patterns for your Asp.Net MVC application. By default, one route is registered here named as Default Route.
WebApiConfig.cs-
This is used to register various WEB API routes like Asp.Net MVC, as well as set any additional WEB API configurations settings.
No comments:
Post a Comment