title: Clientside Validation in "Self Validate Model" in ASP.NET-MVC3
body: <p>This is a followup question for this one: <a href="https://stackoverflow.com/questions/5154231/how-does-dataannotations-really-work-in-mvc">How does DataAnnotations really work in MVC?</a>
  There is an example custom validation, and a "Self Validate Model" was mentioned. It is quite interesting, but I don't understand how to write a client side validation for it.</p>
  
  <p>Can my model object implement the IClientValidateble interface (or it is for the dataannotation attributes only?), I would like to see an example on how to do it.</p>
  
  <p>Edit: To my understanding, the "Self Validate Model" works without using DataAnnotations, and declares the validation logic inside the class which properties I'm validating, and it's not (necessarily) using attributes to validate something.</p>
  
  <p>All of the examples I have seen on custom client side validation is about the dataannotation <em>attribute</em> implementing IClientValidatable.</p>
  
  <p>When I'm declaring my validation logic in my class, I don't use attributes to validate the models state.</p>
  
  <p>How to write clientside validation when I'm declaring my validation logic in the Validate method of the model class implementing the IValidatebleObject interface?</p>
  
  <p>Can the class I'm actually passing to the view implement the IClientValidatable interface or something similar?</p>