ASP.Net 2.0 Membership CreateUser Wizard Control

by top54u.com 23 May, 2008

Introduction

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:

  1. CreateUserWizardStep

  2. CompleteWizardStep

 

CreateUserWizardStep Template

CreateUserWizardStep template consists of following input fields to create a valid user:

  1. UserName: unique ID for new user that will be used as login username

  2. Password: password to authenticate user login.

  3. ConfirmPassword: re-enter the password for verification during create user wizard.

  4. Email: a valid Email-ID for sending accounts related information to the user.

  5. Question: Security Question to verify the user at the time of password recovery.

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

 

CompleteWizardStep Template

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.

Spotlight.....

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , , , , , , ,

Add comment


(Will show your Gravatar icon)  

  Country flag

[b][/b] - [i][/i] - [u][/u]- [quote][/quote]



Live preview

10/11/2008 3:26:46 AM




related videos.....
recent posts.....
top54u ezines.....