Author: joelnylund | Posted on: 6/17/2009 8:53:35 AM | Views : 585

Hi, I have a PasswordRecovery page with a UserNameTemplate, how can I set the "FailureText" from the codebehind in C#. I used to use UserNameInstructionText but when someone added this template that no longer works, I have manually added  the "hello world"text below so im sure thats what I want to update.
 Old code:
 protected void PasswordRecovery1_VerifyingUser(object sender, LoginCancelEventArgs e)
        {
            MembershipUser member = Membership.GetUser(((System.Web.UI.WebControls.PasswordRecovery)sender).UserName);
            if (member != null && member.Comment == "OPENID")
            {
                ((Syst ...

Go to the complete details ...