Using the CreateUserWizard Control : CreateUserWizard « Authentication Authorization « ASP.NET Tutorial






The CreateUserWizard control renders a user registration form. 
If a user successfully submits the form, then a new user is added to your website. 
In the background, the CreateUserWizard control uses ASP.NET membership to create the new user.

File: ShowCreateUserWizard.aspx

<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Show CreateUserWizard</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>

    <asp:CreateUserWizard
        id="CreateUserWizard1"
        ContinueDestinationPageUrl="~/Default.aspx"
        InstructionText="Please complete the following form."
        CompleteSuccessText="Your new account has been created. Thank you for registering."
        CssClass="createUser"
        TitleTextStyle-CssClass="createUser_title"
        InstructionTextStyle-CssClass="createUser_instructions"
        CreateUserButtonStyle-CssClass="createUser_button"
        ContinueButtonStyle-CssClass="createUser_button"
        Runat="server" />
    </div>
    </form>
</body>
</html>

            


ContinueDestinationPageUrl is set to the value "~/Default.aspx". 
After you successfully register, you are redirected to the Default.aspx page.








21.8.CreateUserWizard
21.8.1.Using the CreateUserWizard Control
21.8.2.Turn off the Email
21.8.3.Sending a Create User Email Message
21.8.4.CreateUserWizard with Password Confirmation
21.8.5.CreateUserWizard with Code Confirmation
21.8.6.Customizing the CreateUserWizard control with templates.
21.8.7.Adding Steps to the CreateUserWizard Control