I have fields of type int?.
On view i use jquery plugin which separate textBox value with commas like this : 3,463,436 = 3463436 - it's must be int value.
But on Form subbmit i get error "The value '3,463,436' is not valid for Maximum Contiguous."
Any advice? Thanks.
In ASP.NET MVC one option is to implement a custom
ModelBinderthat strips out commas from the submitted values. I.e. implement a subclass ofDefaultModelBinderHere is how to do it for the decimal separator for the
decimaldata type:How to set decimal separators in ASP.NET MVC controllers?
You will have to something similar for the thousands separator for the
intdata type.