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

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

In Global.asax what does the following signify?

 routes.IgnoreRoute(\"{resource}.axd/{*pathInfo}\");     
4条回答
  •  再見小時候
    2021-02-08 12:00

    It tells the routing engine to ignore this request and leave it to ASP.NET Webforms to handle things.

    This is useful for example ELMAH logging that uses the handler elmah.axd.

提交回复
热议问题