Community blog feed

Lowercase ASP.NET Route URLs

Website
Blog
Stuart Campbell
Posted
31 May 2008 at 19:12

Summary

ASP.NET routes are super cool, but if you follow the Pascal naming convention for your server-side class names you end up with ugly mixed case URLs. Maybe it’s just taste, but I prefer them all lower case. Luckily, Nick Berardi posted a really simple solution. He derived from System.Web.Routin

Post extract

ASP.NET routes are super cool, but if you follow the Pascal naming convention for your server-side class names you end up with ugly mixed case URLs. Maybe it’s just taste, but I prefer them all lower case. Luckily, Nick Berardi posted a really simple solution. He derived from System.Web.Routing.Route and overrode the GetVirtualPath method. All I needed [...]

Related blog entries

We'd love to hear what you think! Submit ideas or give us feedback