Sergey
Sergey

Reputation: 1660

ChangePassword control

I'm using the ChangePassword ASP.NET control.

As expected, when one of the requirements are not met (min password length, confirmation password doesn't match, password strength not good enough...) there are errors messages that come up in red.

Concatenated error messages = BAD

When there is more than one error, they seem to just concatenate on one single line. This looks ugly, and cluttered.

What can I do so that when there are 2 or more errors, each will be on its own line?

Upvotes: 1

Views: 1255

Answers (2)

Sergey
Sergey

Reputation: 1660

My apologies.

It turns out that my ChangePasswordFailureText was set exactly to:

Password incorrect or New Password invalid. New Password length minimum: {0}. Non-alphanumeric characters required: {1}.

There's no way this could have been seperated.

Upvotes: 0

Tim Schmelter
Tim Schmelter

Reputation: 460138

You could change the ChangePassword.FailureTextStyle property.

Gets a reference to a collection of Style properties that define the appearance of error messages on the ChangePassword control.

Upvotes: 3

Related Questions