ASP.NET MVC2 - Does Html.EnableClientValidation() work on the nested data model?

Posted by warmcold on Stack Overflow See other posts from Stack Overflow or by warmcold
Published on 2010-04-23T05:16:19Z Indexed on 2010/05/01 19:37 UTC
Read the original article Hit count: 712

I have seen the client side validation examples and videos on internet by using Html.EnableClientValidation(). But all target on the simple data model.

Does the Html.EnableClientValidation() work on the nested data model like below?

public class Person
{  
    public Name Name { get; set; }  
    public string Gender { get; set; }  
}  

public class Name
{  
    public string First { get; set; }  
    public string Last { get; set; }  
}  

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about asp.net-mvc-2