What is the best way to do validation in MVC 3? Here are the requirements:
- Works client and server side.
- Shares as much code between client and server as possible (attribute on model property seems ideal)
- Works across async request
- Display errors, validation messages, and success messages coming from the server side
- Unobtrusive javascript, as minimal as possible
- Dynamically added HTML should still validate the same way
My task this weekend is to build a robust solution for this, figured I'd ask here first before re-inventing or re-discovering the wheel with blood sweat and tears.