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
  • 56,650
  • 48
  • 196
  • 243

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
  • 1,023,142
  • 271
  • 3,287
  • 2,928