想知道这个片段的含义 [英] Want to knw meaning of this snippet
本文介绍了想知道这个片段的含义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是Asp.net MVC的新手。我想知道这条线的含义是什么,何时以及如何使用它..
routes.IgnoreRoute({resource} .axd / {* pathInfo});
建议关于初学者MVC(C#)的最佳文章。
提前谢谢..
解决方案
这里这样,我们希望在任何特定路径上忽略带有axd
扩展名的请求。
相同事情也在这里解释:
忽略列表请求 [ ^ ]
希望这有助于
http://haacked.com/archive/2008/07/14/make-routing-ignore-requests-for-a-file-extension.aspx/ [ ^ ]
检查以下链接
what-is-routes-ignorerouteresource-axd-pathinfo [ ^ ]
并将其转发给MVC
MVC Google Result [ ^ 一>
Hi,
Am new to Asp.net MVC.I want to know what is the meaning of this line, when and how to use this..
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
Suggest me best articles on MVC (C#) for Beginners.
Thanks in advance ..
解决方案
Here by this, we want to ignore a request with 'axd
' extension at any particular path.
The same thing is also explain here:
Ignore List Request[^]
Hope this helps
http://haacked.com/archive/2008/07/14/make-routing-ignore-requests-for-a-file-extension.aspx/[^]
Check the below link
what-is-routes-ignorerouteresource-axd-pathinfo[^]
and refer this for MVC
MVC Google Result[^]
这篇关于想知道这个片段的含义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文