<% ViewData.ModelState.IsValid %>
or
<% ViewData.ModelState.Values.Any(x => x.Errors.Count >= 1) %>
and for a specific property…
<% ViewData.ModelState["Property"].Errors %> // Note this returns a collection
<% ViewData.ModelState.IsValid %>
or
<% ViewData.ModelState.Values.Any(x => x.Errors.Count >= 1) %>
and for a specific property…
<% ViewData.ModelState["Property"].Errors %> // Note this returns a collection