ASP.NET MVC Default route?

前端 未结 4 2015
眼角桃花
眼角桃花 2020-12-09 16:49

I created a new ASP.NET MVC project and implemented a site authorization filter.

When I map the routes to the {controller}/{action} pair, I pass a role

4条回答
  •  Happy的楠姐
    2020-12-09 17:25

    Phil Haack released a route debugging tool that can be invaluable in gaining an understanding of problems like this.

    With this tool you can view how your MVC application parses a URL and matches it to your RouteTable.

提交回复
热议问题