Using LowercaseRoutes with another custom route?

Apr 29, 2012 at 12:22 PM

How can I use LowercaseRoutes if I'm already using a custom default route?

                "Default", // Route name
                "{controller}/{action}/{aId}", // URL with parameters
                new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults


Apr 29, 2012 at 8:50 PM

Is the MapGuidReplacingRoute method something you wrote, or is that from a library?

Apr 29, 2012 at 9:54 PM
Yes it's something I wrote in this case but would be interested
in solution if it was a library as well.
Apr 30, 2012 at 3:42 PM

If you're already replacing the route mapping functionality, then you won't be able to also use LowercaseRoutes, as it works in the same fashion.

Your best bet would probably be to have a look at the LowercaseRoute source, and work the same functionality into your method, so that it does both jobs for you.