PasswordRecovery.VerifyingAnswer Event

Note: This event is new in the .NET Framework version 2.0.

Occurs when the user has submitted an answer to the password recovery confirmation question.

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)

public:
event LoginCancelEventHandler^ VerifyingAnswer {
	void add (LoginCancelEventHandler^ value);
	void remove (LoginCancelEventHandler^ value);
}
/** @event */
public void add_VerifyingAnswer (LoginCancelEventHandler value)

/** @event */
public void remove_VerifyingAnswer (LoginCancelEventHandler value)

JScript supports the use of events, but not the declaration of new ones.

The VerifyingAnswer event occurs on the server after the user submits the answer to the password confirmation question. You can use this event to prepare the answer submitted by the user for the membership provider, for example by converting it to all uppercase or lowercase letters.

The PasswordRecovery control first raises the VerifyingAnswer event, and then uses the membership provider specified in the MembershipProvider property to compare the answer entered by the user with the password stored in the Web site.

For more information about handling events, see Events and Delegates.

The following code example handles the VerifyingAnswer event and changes the displayed UserName property.

No code example is currently available or this language may not be supported.

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show: