I would like to allow both "123.45" and "123,45" as valid decimal inputs but currently "123.45" results in "The value '123.45' is not valid for Foo"
.
Asked
Active
Viewed 3,906 times
7

randomguy
- 12,042
- 16
- 71
- 101
1 Answers
4
You have to use Globalization. Globalization allows you to customize your numeric inputs for different locales. Have a look at the following article:
Globalizing ASP.NET MVC Client Validation
http://haacked.com/archive/2010/05/10/globalizing-mvc-validation.aspx

Robert Harvey
- 178,213
- 47
- 333
- 501
-
Any suggestions for a way to do it when not doing client validation? – kenwarner Nov 14 '11 at 16:28