- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我还需要这条规则吗?
我没有看到任何对 resource.axd 文件的请求(与我运行 webform 应用程序时相反)
最佳答案
WebResource.axd is an HTTP Handler that is part of the .NET Framework that does one thing and one thing only – it is tasked with getting an embedded resource out of a DLL and returning its content. What DLL to go to and what embedded resource to take are specified through the querystring. For instance, a request to www.yoursite.com/WebResource.axd?d=EqSMS…&t=63421… might return a particular snippet of JavaScript embedded in a particular assembly.
它仍然是框架的一部分,您仍然可以使用上述处理程序检索嵌入式资源。您不希望您的路由处理程序处理此类请求,这就是它被忽略的原因。我的猜测是,如果您完全确定您使用的应用程序/库不使用它,您就可以摆脱它。
关于asp.net-mvc-3 - ASP.NET MVC 3 : Purpose of IgnoreRoute ("{resource}.axd/{*pathInfo}"); ? 已弃用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10047008/
我注意到一个 SO 答案暗示 or-delimited matches for IgnoreRoute ,像这样: routes.IgnoreRoute("*.js|css|swf"); 当我试一试时
我有一个 svg 文件作为我的 Assets ,在 Routeconfig 中,我提到了以下代码 routes.IgnoreRoute("{*svg}", new { svg = @"(.*/
更新:简洁起见重新改写... 对于ASP.NET MVC项目,是否可以使web.config重写规则优先于MVC的RegisterRoutes()调用,或者可以仅针对特定域调用IgnoreRoute?
我使用带有 Web 表单的 asp.net c#。 我的网站使用路由。 我需要我的路线忽略 ELMAH (myFolder/elmah.axd) 我正在考虑使用 routes.IgnoreRoute(
在我的 ASP.NET MVC3 应用程序中,我尝试模拟“routes.IgnoreRoute("...")” 我创建 CustomMvcRouteHandler: public class Cust
我想阻止用户访问我的“~/Content/...”文件夹,我在“Global.asax.cs”中将其编写如下,并将这行代码放在所有其他路由的顶部routes.IgnoreRoute("Content/
默认的 ASP.NET MVC 3 项目模板包含以下 IgnoreRoute指示: routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); 我现在已经看到多
我将 filevistacontrol 添加到我的 asp.net MVC web 应用程序中。 我有一个在路由中被忽略的 media.aspx 页面 routes.IgnoreRoute("medi
我尝试了以下两种方法来尝试忽略我的“ Assets ”文件夹,但我一直遇到错误。谁能告诉我忽略正则表达式的确切外观? routes.IgnoreRoute("/Assets/") ro
由于复杂的原因,我不会详细说明,我们的应用程序中有一些请求 /blah/[**Token**] (这是字面意思,这些都不是占位符)。 目前,我们从 MVC 收到错误,表示每次收到请求时都找不到 ICo
在我的 web api 项目 Application_Start() 方法中,我正在执行以下操作以允许 elmah.axd RouteTable.Routes.IgnoreRoute("{resour
如何忽略区域内的路线? 我的 MVC 应用程序中有验证码。它从 GenericHanlder(.ashx) 加载它的图像,所以如果我不使用区域它工作正常,如果我只是忽略来自该 URL 的路由。 IE:
什么是routes.IgnoreRoute("{resource}.axd/{*pathInfo}") 我在项目中找不到任何 .axd 文件,我可以删除此路由规则吗? 最佳答案 .axd 文件实际上并
任何人都可以就过滤我的 Elmah ( http://code.google.com/p/elmah/ ) 异常日志提供建议吗? Elmah 是一个非常有值(value)的工具,可以突出显示我在 We
我从 MVC 1 切换到 MVC 2。我在我的应用程序中使用了 file.axd httphandler 并设置了 routes.IgnoreRoute("{resource}.axd/{*pathI
在 ASP.NET MVC 中,我可以获得有关路由和自定义路由的单元测试的信息,但我不知道如何对 IgnoreRoute 进行单元测试。 routes.IgnoreRoute("{resource}.
我注意到 routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); 每当我们创建 MVC 应用程序时总是会设置。 如果这是强制性的事情,为什么我们不通过 II
我还需要这条规则吗? 我没有看到任何对 resource.axd 文件的请求(与我运行 webform 应用程序时相反) 最佳答案 WebResource.axd is an HTTP Handler
我是一名优秀的程序员,十分优秀!