Connect with Peer Bloggers

Get your Bloggers ID and network with best bloggers around the world.

11

validation-summary-errors div showing even if there is no error binded to a property

Czetsuya
czetsuya's tech ― I'm working on a change password form when I encountered this strange behavior from mvc3. I created a simple form and change password model with 3 fields (old, new, confirm password). Then I extended ValidationAttribute to validate the password's length.ValidatePasswordLengthAttributepublic class ValidatePasswordLengthAttribute : ValidationAttribute { private readonly int _minCharacters = Membership.Provider.MinRequiredPasswordLength; public override string FormatErrorMessage[...]

Voted by 1 User



What would you say?

Be the first to comment on this blog post! Sign in or Create an account.