tags:

views:

29

answers:

1

how to check in View if validation succeded (same as ModelState in Controler)?

+3  A: 

you can use ModelState in view, this way:

<% if (this.ViewData.ModelState.IsValid) { %>
/* put your html here */
<% } %>
Alex LE