Client-side custom data annotation validation

前端 未结 3 481
耶瑟儿~
耶瑟儿~ 2020-12-30 15:02

I\'ve create a custom data annotation to do some validation on my view model. The problem is that it doesn\'t validate on the client-side. Here\'s my model:

         


        
3条回答
  •  太阳男子
    2020-12-30 15:12

    A Remote Validator is what you need here is the link http://www.devtrends.co.uk/blog/the-complete-guide-to-validation-in-asp.net-mvc-3-part-1

提交回复
热议问题