asp.net-mvc – 使用BootstrapValidator与MVC DataAnnotations
我使用DataAnnotations来指定我的验证规则,默认情况下,这些验证规则被添加到客户端,以便它们被jquery验证. 我想使用BootstrapValidator.js,因为我喜欢错误/成功消息呈现的方式.但是,它需要我在客户端重新定义验证规则. An article about BootstrapValidator.js可以找到. 有没有办法我可以使用DataAnnotations并在一