I am using asp.net mvc 3 and I keep getting the following error.
Validation type names in unobtrusive client validation rules must be unique. The following type of check has been seen more than once: number
I have no clue as I have this
@Html.TextBoxFor(x => x.Mark)
// my viewmodel
[Required(ErrorMessage = "Message")] [Number(ErrorMessage = "Message")] public decimal Mark { get; set; }
If I change it from decimal string to string, it will not complain. What's happening?
Edit
I think the annotation is [Number(ErrorMessage = "Message")] because of this. I use this library Data Annotation Extensions
It doesn't seem like I'm using decimal numbers. Does anyone know why?
source share