Not sure if this is a silly question or not, but basically what I would like to do is have a single asp:CustomValidator for a password field which returns a list of error messages with the issue encountered during validation.

For example the password may be too short, not complex enough and contain invalid characters.

My hope is that I can set the ErrorMessage field in the validator to contain html which will allow it to render as a bulleted list with a asp:ValidationSummary control. e.g. ErrorMessage = <li>Password issue 1</li><li>Password issue 2</li> etc...

Related posts

Recent Viewed