How do you avoid duplication of validation on the server and client-side?
问题 How do you avoid duplication of validation on the server and client-side? Is there a web programming platform that generates one from the other, so I don't have to keep the two in sync? 回答1: There are frameworks that can generate the client-side validation from serverside validation configuration. Now I don't know what language or frameworks you are using, but maybe this article can be of help: http://www.emadibrahim.com/2008/09/08/client-server-side-validation-in-aspnet-mvc/ He's using