making URL lowercase. Any easy or builtin way?

I’ve just noticed that there is a new property in .NET Framework 4.5. Works great!
RouteCollection.LowercaseUrls

Set LowercaseUrls to true

public static void RegisterRoutes(RouteCollection routes)
{
    routes.LowercaseUrls = true;
    ...
}

Create a link

@Html.ActionLink("Log in", "Login", "Account")

That will create awesome, lowercase url 🙂

<a href="https://stackoverflow.com/account/login">Log in</a>

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)