I need to find a way to intervene in the way ASP.NET MVC default model binder binds Double values in order to make it to understand that 3.000,00 (or 3,000.00, depending on the culture) is a valid number.
What do I do?
I need to find a way to intervene in the way ASP.NET MVC default model binder binds Double values in order to make it to understand that 3.000,00 (or 3,000.00, depending on the culture) is a valid number.
What do I do?
You can't make the default model binder understand such numbers. But you could write a custom model binder that will use the DisplayFormat
you defined on the corresponding property.