Server side Range
and Compare validation in MVC
In my last
article I discussed about the server side Required validation with example. In
this example I am continuing the last topic and will cover the Range validation
and compare validation in mvc.
Server Side Range Validation
To implement
the range validation we have to use the Range attribute on the property in my
model. As I am continuing the last article example, so our model class is
Student.
So to
implement the Range validation we have to set the Range attribute in the
following in manner:-