Category Archives: PasswordRecovery

PasswordRecovery

[RESOLVED]Can not access controls inside PasswordRecovery control by using PasswordRecovery.FindControl method

I am trying to access label control placed inside UserNameTemplate of PasswordRecovery control by using PasswordRecovery.FindControl method but can’t find it. Any help in resolving the issue will be appreciated.

The issue is resolved by using PasswordRecovery.UserNameTemplateContainer.FindControl method instead. Thought someone might benefit from this.

Hi,

   Greetings!

sumukhc

I am trying to access label control placed inside UserNameTemplate of PasswordRecovery control by using PasswordRecovery.FindControl method but can’t find it. Any help in resolving the issue will be appreciated.

You may also use properties directly.

Refer to the following example:

protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            PasswordRecovery1.UserNameLabelText = "Insert Manager Name";
            PasswordRecovery1.UserNameTitleText = "VALIDATION";
            PasswordRecovery1.UserNameInstructionText = "Enter the UserName below!";
        }
    }

Hope it helps!

Best Regards!