CreateUserWizard::UserName Property

 

Gets or sets the user name entered by the user.

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

public:
property String^ UserName {
	virtual String^ get();
	virtual void set(String^ value);
}

Property Value

Type: System::String^

The user name entered by the user. The default value is an empty string ("").

If a user name is required by the membership provider specified in the MembershipProvider property, then the user name text box will appear on the CreateUserWizard control. Each text box displayed on the CreateUserWizard control has a RequiredFieldValidator object associated with it.

The following code example sets the UserName property to all lowercase alphabetical characters in the CreatingUser event.

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

.NET Framework
Available since 2.0
Return to top
Show: