ASP.NET MVC2 - Does Html.EnableClientValidation() work on the nested data model?
- by warmcold
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; }
}