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".
I would like to allow both 123.45 and 123,45 as valid decimal inputs but
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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