MVC 2 Validation without BuddyClasses

Posted by Muhammad Adeel Zahid on Stack Overflow See other posts from Stack Overflow or by Muhammad Adeel Zahid
Published on 2010-06-09T07:24:16Z Indexed on 2010/06/09 7:32 UTC
Read the original article Hit count: 341

Hello EveryOne,

i m using asp.NET MVC 2 for my current project and i need to validate form fields both on client and server side. for that i started with DataAnnotations. Now, i figure out that i have to write buddy class for every model or i have to go to designer generated code and put my annotations there (not a good idea though). if someone can suggest me a solution that helps me avoid writing those buddy classes and get the same functionality.
Regards
Adeel

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about form-validation