ASP.NET MVC中filterconfig.cs,webapiconfig.cs,bundleconfig.cs,routeconfig.cs,global.asax和webconfig的用途是什么 [英] What is the purpose of filterconfig.cs , webapiconfig.cs, bundleconfig.cs, routeconfig.cs, global.asax and webconfig in ASP.NET MVC

查看:396
本文介绍了ASP.NET MVC中filterconfig.cs,webapiconfig.cs,bundleconfig.cs,routeconfig.cs,global.asax和webconfig的用途是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

需要知道mvc的主要用途及其用途



我尝试过:



i试图搜索mvc书籍和博客,但没有正确提及

解决方案

阅读本文:asp.net mvc 4 - 在App_Start中使用AuthConfig,BundleConfig,FilterConfig,RouteConfig和WebApiConfig MVC中的()文件夹 - Stack Overflow [ ^ ]


 BundleConfig.cs 
这是一种用于提高性能的技术您的网页
通过将样式文件和javascript文件分组到单独的包中,并将该包包含在控制器文件中。

FilterConfig.cs
在此文件中,我们保留与配置相关的所有过滤器,其中包括安全策略和输出参数。

RouterConfig.cs
此文件用于通过使用路由器表将URL请求映射到特定的控制器操作。


need to know the main purpose and what it is used for in mvc

What I have tried:

i have tried searching mvc books and blogs but there it is not properly mentioned

解决方案

Read this : asp.net mvc 4 - Use of AuthConfig, BundleConfig, FilterConfig , RouteConfig and WebApiConfig in App_Start() folder in MVC - Stack Overflow[^]


BundleConfig.cs
It is a technique used to improve the performance of your web page 
By group the style files and javascript files in the separate bundle and include that bundle in the controller file.

FilterConfig.cs
In this file we keep all the filter related to configuration which include security policies and output parameter.

RouterConfig.cs
This file is used to maps the url request to a specific controller action by using the Router Table. 


这篇关于ASP.NET MVC中filterconfig.cs,webapiconfig.cs,bundleconfig.cs,routeconfig.cs,global.asax和webconfig的用途是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆