ASP.NET login control - can I add the FailureText as an item in a ValidationSummary?

Posted by tkahn on Stack Overflow See other posts from Stack Overflow or by tkahn
Published on 2010-04-08T08:54:41Z Indexed on 2010/04/08 9:03 UTC
Read the original article Hit count: 504

I'm currently working with the ASP.NET login control. I can set a custom failure text and I can add a literal on the page where the failure text is displayed if the login fails. I also have a validation summary on the page in which I collect all errors that can occur (for the moment it just validates that the user has entered a login name and a password.

It would be really nice if I could add the failure text of the login control as an item in the validation summary, but I'm not sure if this is even possible?

Hoping that the massive brainpower of stackoverflow can give me some pointers?

Thanks!

/Thomas Kahn PS. I'm coding in C#.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about login-control