Xval and Comparsion Operators?
-
12-09-2019 - |
Question
I read on the site that version 0.8 of xVal supports
"Support for comparison validators (e.g., “PasswordConfirm” must equal “Password”)"
Yet I see no tutorial on how to do this. I am trying to compare 2 passwords yet don't even know where to start.
Can someone show me how to do this?
Solution
There are a couple of discussions on codeplex about comparison validators. One in January saying that is was not yet possible and then in June saying you can use custom validators.
January: CompareTo Validation Attribute
June: How do I use the ComparisonRule when using DataAnnotations
If nothing else it might point you in the right direction.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow