Posts tagged “MVC”

Understanding Route Order in ASP.NET MVC

Scott Walker · Apr 13, 2013

When working with ASP.NET MVC routing, the order in which you register routes inside Global.asax.cs is critical. Routes are evaluated from top to bottom, and the first matching route wins. If a more general route appears before a more specific one, it can intercept the request and prevent the intended controller from being reached.

đŸ’Ŧ 0 MVC

Loading Blog Categories in an MVC View

Scott Walker · Dec 21, 2010

In this example, each blog post can have multiple categories associated with it. Both the blog data and category data are stored in the database, so the goal is to expose a list of categories for a specific blog inside the view.

đŸ’Ŧ 0 MVC