Archives
-
Include and Exclude Constraints in ASP.NET MVC
Otherwise known as a white list or black list for route tokens, this simple IRouteConstraint is coming in handy and I thought i would share:
-
Aliasing and Localizing Routes in ASP.NET MVC
I had come across a forum post where someone wanted to localize urls in the RouteTable and I thought I would come up with my first stab at a better solution. What I discovered turned out to be a pretty simple way of what I am calling ‘Aliasing Routes’ where a route token can have an alias value as a localized value.