Asp.net mvc2: How to add validation rules - A number field is not required but has range limitation?
Asp.net mvc2: How to add validation rules - A number field is not required but has range limitation?
-
This question is pretty thin; if you add more detail, showing perhaps what you have and what is not working, it will be easier to answer.Dan Davies Brackett– Dan Davies Brackett2010-05-28 23:11:32 +00:00Commented May 28, 2010 at 23:11
-
1How can a number be optional but still have a restricted range? I'm pretty sure null is not between 1 and 10.Robert Harvey– Robert Harvey2010-05-28 23:25:36 +00:00Commented May 28, 2010 at 23:25
-
Using the Required attribute will not allow 0 whereas a Range attribute from 0 to 255 will.Marc Tidd– Marc Tidd2010-05-28 23:28:31 +00:00Commented May 28, 2010 at 23:28
Add a comment
|