11 lines
412 B
C#
11 lines
412 B
C#
|
namespace System.Web.Mvc {
|
|||
|
public class ModelClientValidationRangeRule : ModelClientValidationRule {
|
|||
|
public ModelClientValidationRangeRule(string errorMessage, object minValue, object maxValue) {
|
|||
|
ErrorMessage = errorMessage;
|
|||
|
ValidationType = "range";
|
|||
|
ValidationParameters["min"] = minValue;
|
|||
|
ValidationParameters["max"] = maxValue;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|