ASP.Net 2.0 Membership CreateUser Wizard Control
In ASP.Net 2.0 membership CreateUser Wizard Control provides the automated functionality to register a new user on your web site. It uses the default sql provider that connects to Aspnetdb database to save the membership data. CreateUser Wizard Control uses the Wizard control of ASP.Net that relies on membership services to create and manage personalized data in aspnetdb database.
CreateUser Wizard Control
By default create user wizard control have two steps:
CreateUserWizardStep template consists of following input fields to create a valid user:
UserName: unique ID for new user that will be used as login username
Password: password to authenticate user login.
ConfirmPassword: re-enter the password for verification during create user wizard.
Email: a valid Email-ID for sending accounts related information to the user.
Question: Security Question to verify the user at the time of password recovery.
Answer: Secret answer for security question.
Create User button passes a command CreateUser to the membership provider that creates a new user in the database without any code behind the button click event to create user.
All input fields of CreateUserWizardStep are validated by required field validation controls of ASP.Net. You can also validate the Email field by using Email Validation Regular Expression. Set the EmailRegularExpression property of createuserwizard control = \w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)* to validate the user Email-Id string value.
When user clicks on CreateUser button, it creates the user in database and changes the create user wizard step to CompleteWizardStep. By default CompleteWizardStep template displays "Your account has been successfully created." message and Continue button.
You can change the message by changing the CompleteSuccess property of CreateUser Wizard control.
You can set the ContinueDestinationPageUrl property to redirect the user to a particular web page when user clicks on Continue button after successful registration.
So, just drag and drop the Create User Wizard Control from login controls tab on your web page, you are ready with user registration step of ASP.Net membership function.
Continue to next tutorial: ASP.Net 2.0 CreateUser Email Confirmation to learn how to configure the email confirmation for user registration.