2

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?

Andre Pena
  • 52,662
  • 43
  • 183
  • 224

1 Answers1

1

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.

Community
  • 1
  • 1
Darin Dimitrov
  • 994,864
  • 265
  • 3,241
  • 2,902