System.Web.UI.WebControls.CreateUserWizard.OnCreatedUser Method

Raises the CreateUserWizard.CreatedUser event after the membership provider creates the user account.

Syntax

protected virtual void OnCreatedUser (EventArgs e)

Parameters

e
An EventArgs that contains the event data.

Remarks

The CreateUserWizard.OnCreatedUser(EventArgs) method is called after the Web site user account is created by the membership provider. If the CreateUserWizard.LoginCreatedUser property is true, the user is logged in after the CreateUserWizard.OnCreatedUser(EventArgs) method is called.

Use the CreateUserWizard.OnCreatedUser(EventArgs) method to set Web site values, such as personalization properties, before the user is logged in for the first time.

Raising an event invokes the event handler through a delegate. For more information, see Raising an Event.

The CreateUserWizard.OnCreatedUser(EventArgs) method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0