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.
By default create user wizard control have two steps:
CreateUserWizardStep template consists of following input fields to create a valid user:
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.
Be the first to rate this post
Tags: asp.net 2.0, asp.net membership, asp.net login controls, asp.net createuser, asp.net membership login, aspnetdb, membership createuser, createuserwizard control
10/11/2008 3:26:46 AM