What is the best way of adding a greater than 0 validator on the client-side using MVC and data annotation?
-
30-10-2019 - |
Question
I'd like to be able to only allow a form to submit if the value in a certain field is greater than 0. I thought maybe the Mvc Range attribute would allow me to enter only 1 value to signify only a greater than test, but no luck there as it insists on Minimum AND Maximum values.
Any ideas how this can be achieved?
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow