Friday, 9 August 2013

DataAnnotation validation attributes do not work when field is rendered in partial view

DataAnnotation validation attributes do not work when field is rendered in
partial view

I have a simple model that has a string property that has validation put
on it via dataannotations. When this is rendered in the main form
validation works as expected. If I move the field to a partial view the
validation no longer works.

No comments:

Post a Comment