ASP.NET MVC Routing Via Method Attributes

Posted by TorgoGuy on Stack Overflow See other posts from Stack Overflow or by TorgoGuy
Published on 2009-05-21T19:50:01Z Indexed on 2010/04/29 15:47 UTC
Read the original article Hit count: 581

In the StackOverflow Podcast #54, Jeff mentions they register their URL routes in the StackOverflow codebase via an attribute above the method that handles the route. Sounds like a good concept (with the caveat that Phil Haack brought up regarding route priorities).

Could someone provide some sample to to make this happen?

Also, any "best practices" for using this style of routing?

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about url-routing