This project is read-only.

should xVal validate .Net DataType tightly?

Aug 26, 2009 at 8:44 PM

hi everyone,

heres the situation. Im using DataAnnotations + jQuery validate and in my model, i have a property of type Double. I didnt put any validation on it. xVal generate a validation in my form telling that the field for this property should be Decimal. Everything is great but the Decimal validation is wrong. It will accept this kind of values: "2,222.22".

My opinion is that xVal jQuery plugin should be tight with .Net Types and only accept these kind of numbers: "111.11", "222,22", "-333,33"

if people wants more, they might use the RegEx attribute


any opinions?

Aug 26, 2009 at 8:45 PM
I am out of office dealing with family affairs from August 25 to August 27. I could not access E-Mail immediately during these days.

Should you have any question during this time, please feel free to call my cell phone.



本人于 8.25 8.27 间外出处理家庭事务。