Understanding routing in Global.asax (asp.net-mvc)

后端 未结 4 2159
南旧
南旧 2021-02-08 11:18

In Global.asax what does the following signify?

 routes.IgnoreRoute(\"{resource}.axd/{*pathInfo}\");     
4条回答
  •  说谎
    说谎 (楼主)
    2021-02-08 12:11

    Without this ASP.NET would try to map all requests to AXD handlers to controllers and actions. Having the ignoreRoute means the URL will not map the URL to a controller as per the default behaviour.

提交回复
热议问题