Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CreateUserWizard::CreatingUser Event

 

Occurs before the membership provider is called to create the new Web site user account.

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

public:
event LoginCancelEventHandler^ CreatingUser {
	void add(LoginCancelEventHandler^ value);
	void remove(LoginCancelEventHandler^ value);
}

The CreatingUser event is raised prior to calling the CreateUser method on the membership provider specified in the MembershipProvider property.

Use the CreatingUser event to establish defaults or modify the information entered by the user before passing the information to the membership provider.

For more information about handling events, see NIB: Consuming Events.

The following code example uses the CreatingUser event to make the UserName property all lowercase before submitting it to the membership provider specified in the MembershipProvider property.

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

.NET Framework
Available since 2.0
Return to top
Show:
© 2017 Microsoft