lundi 3 août 2015

Custom validation in MVC executing only once

I have one model field with StringLength attribute set. Now I have written custom validation to validate against certain criteria. If the entered length of the text exceeds the specified length then the custom validation message appears but reducing the text size to a valid size the message remains there.

Any idea, why this is happening?

Aucun commentaire:

Enregistrer un commentaire