multiple validation errors showing up for single property

Posted by Dave K on Stack Overflow See other posts from Stack Overflow or by Dave K
Published on 2010-04-27T04:20:34Z Indexed on 2010/04/27 4:23 UTC
Read the original article Hit count: 234

i'm often getting multiple errors showing up for an individual property, when I'd like them to be prioritized, as in, if Required is satisfied, check StringLength, but if Required fails, show that message only. I'm getting inconsistent behavior here, and I'm curious as to how the framework determines this priority?

has anyone else had problems with this?

Thanks!

© Stack Overflow or respective owner

Related posts about asp.net-mvc-2

Related posts about input-validation