Globalizing Javascript with .NET Resources Using ASP.NET MVC

Sometimes you already have a .NET Resources to translate your application and now you need to use the same messages in Javascript. In this post I will show you how to create an ASP.NET MVC action and return a javascript object containing the messages, all that respecting the culture setted in the Thread.CurrentUICulture.

Continuar lendo “Globalizing Javascript with .NET Resources Using ASP.NET MVC”

Globalizing Javascript with .NET Resources Using ASP.NET MVC

Glogalizing jQuery Validation for Number and Date

The jQuery validation and the jQuery unobtrusive validation are frameworks for client validation. The default implementation uses the en-US culture, that is, number in the format of dot deparating the decimal places and date in the format MM/dd/yyyy. In this post we will customize that according with the culture chosen by the user.

Continuar lendo “Glogalizing jQuery Validation for Number and Date”

Glogalizing jQuery Validation for Number and Date

Globalizing DateTime and Decimal in ASP.NET MVC Using ModelBinder

If you already develop an ASP.NET MVC application in your computer that has some specific culture, pt-BR in my case, and after you publish to a server that has a different one, Azure using en-US in my case, you will have some unexpected results when typing date and decimal values. In this post I will show how to have sure that your application will work as expected in any server. We will accept values corresponding to the culture chosen by the user.

Continuar lendo “Globalizing DateTime and Decimal in ASP.NET MVC Using ModelBinder”

Globalizing DateTime and Decimal in ASP.NET MVC Using ModelBinder