I am looking at the best way to take advantage of the MVC validation while using Ajax and not having access to a class.
On my masterpage it will contain a simple form (name, email, tel, comments) which I display in a overlay. As this is in the masterpage is available on any page, The masterpage never inherits a class like you would do when normally validating. So im not sure how (or if its still possible) to validate my form in the same way.
I thought creating a class with the same validation rules i would normally apply would help and then trying to maybe load this from viewdata? is this the best way to go or will validation not work doing this?