Simplify user account creation with the new CreateUserWizard control.
Because creating user accounts is such as common task for most web sites, Microsoft has provided a new CreateUserWizard control in ASP.NET 2.0. The CreateUserWizard control takes the drudgery out of creating user accounts by providing a highly customizable control that accepts users' information. It performs such tasks as verifying users' passwords and authenticating email addresses. It then automatically adds the user account using the specified Membership Provider.
In this lab, you will create a page to let users create an account on your web site. You will use the CreateUserWizard control to perform this task.
Using the same project created in the last lab (C:\ASPNET20\chap-5-SecurityControls), add a new Web Form to the project (right-click the project name in Solution Explorer and then select Add New Item...; select Web Form). Name the Web Form NewUser.aspx.
Drag and drop the CreateUserWizard control onto the form.
Apply the Elegant scheme to the CreateUserWizard control (through the Auto Format... link in the CreateUserWizard Tasks menu).Your page should now look like the one shown in Figure 5-25.
Figure 5-25. Using the CreateUserWizard control
You can customize the look and feel of the CreateUserWizard control by using the CreateUserWizard Tasks menu. ...