阅读背景:

ASP.NET MVC - 与使用模型注释相比,使用自定义JQuery验证更好吗?

来源:互联网 

I've just started using the MVC pattern with ASP.NET with Razor, everything is great! The model annotations for validation looked great at first but now it's becoming quite annoying as there doesn't seem to be a straight forward way of validating a checkbox and it seems like a pain to integrate your own JQuery validation into a form along with the model validation. It seems by adding the annotations in the model asp.net is doing the work for you, which is great but when it comes down to customising a site I don't want anything pre-done. So, it is better to go with your own validation using JQuery or stick to using the annotations in the Model?I've just started using the MVC pattern with AS




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: