Notes on MVC routes mapping

  1. Add the more specific rules first and the more generalized ones at the end
  2. Define defaults from the back to front
  3. controller and action must exist in all rules either in the URL part or the default part. Otherwise the route handler won’t know what controller/action to map the URL to.

One Comment

  1. Joe Chung
    Posted July 31, 2009 at 2:33 AM | Permalink

    ASP.NET MVC 2 Preview 1 just shipped. Check it out!

    http://www.haacked.com/archive/2009/07/30/asp.net-mvc-released.aspx


Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*