MVC3 integrated, with some changes to make it compile on Mono and with Razor2
[mono-project.git] / mcs / class / System.Web.Mvc3 / Mvc / ModelClientValidationRangeRule.cs
blob647e21fca795e4e0abc35da61084b00337480dcd
1 namespace System.Web.Mvc {
2 public class ModelClientValidationRangeRule : ModelClientValidationRule {
3 public ModelClientValidationRangeRule(string errorMessage, object minValue, object maxValue) {
4 ErrorMessage = errorMessage;
5 ValidationType = "range";
6 ValidationParameters["min"] = minValue;
7 ValidationParameters["max"] = maxValue;