MVC3 number validation and localization
Posted on 2012-12-30
In my MVC3 app, the user can choose their currency. When they do this and it changes to a currency that uses commas and decimals opposite to the US method (commas for decimal points and dots for number separators).
I'm using the built in @Html.ValidationMessageFor() helpers and it doesn't like the non US format for numbers.
If an input has 1,00 instead of 1.00 it complains that the input must be a number. Googling around yesterday, I read you have to download and install the .NET 4 full language pack, but that didn't help.
Is there any easy way to use the built in validation helpers along with localization, or do I need to switch to jquery validation?