ASP .NET MVC 3 Data Annotations GreaterThan LowerThan for DateTime and int

后端 未结 5 2123
执念已碎
执念已碎 2021-02-13 10:19

I would like to know what is the easiest way to have a \"Greater Than\" & \"Lower Than\" validation on a ASP.NET MVC 3 form?

I use unobtrusive JavaScript for client

5条回答
  •  攒了一身酷
    2021-02-13 10:31

    Take a look at the answer of this thread,

    There is a lib called MVC.ValidationToolkit. Though I'm not sure whether it works in case of DateTime fields.

提交回复
热议问题