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"
.
views:
38answers:
2
A:
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
2010-07-22 21:18:20
A:
I think you're working with C#. If so, your question is already answered in detail.
http://stackoverflow.com/questions/147801/best-way-to-parse-float
ubuntuguy
2010-07-22 21:22:30