O'Reilly logo

ASP.NET 2.0: A Developer's Notebook by Wei-Meng Lee

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Create Accounts with CreateUserWizard

Note

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.

How do I do that?

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.

  1. 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.

  2. Drag and drop the CreateUserWizard control onto the form.

  3. 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.

    Using the CreateUserWizard control

    Figure 5-25. Using the CreateUserWizard control

    You can customize the look and feel of the CreateUserWizard control by using the CreateUserWizard Tasks menu. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required