ASP.Net 3.5: User Account Creation for Your Website
(Page 1 of 4 )
If you're setting up an ASP.NET website that will have a membership of registered users, such as a forum or some kinds of blogs, you want to make the registration as simple as possible. This article will show you how to set up a website that allows users to create their own accounts, without involving the administrator.
You may have read our article on "ASP.NET 3.5 Basic User Account Management," which is an introductory tutorial on how to enable ASP.NET 3.5 Membership to start registering and managing users for your website.
In that tutorial, we used the "Website Administration Tool" for registering new users of the website. This means that only the website administrator/developer can register new users.
However, in real world applications of ASP.NET 3.5 websites found on the Internet, website visitors can create their own new ASP.NET 3.5 account.
These sites use an ASP.NET web page to register new users and not the "Website Administration Tool," which can only be used by an administrator.
This tutorial will focus on the development of ASP.NET 3.5 websites that allow users to create their own accounts. It is highly recommended that you read the first tutorial, so that you will have an in-depth understanding of the ASP.NET 3.5 membership system.
"CreateUserWizard" Tool in Visual Web Developer
Since the .NET technology in developing websites is as simple as using the "click and drag" method (with no need to hard code everything), the same thing applies to creating web pages that can accept users registration.
If you have Visual Web Developer Express 2008 installed, go to View -> Toolbox -> Login. You should see the CreateUserWizard web control.
To illustrate how to use this web control for accepting new users to your website, follow the steps below:
Step 1: Launch Visual Web Developer Express.
Step 2: Create new ASP.NET website and name that project CreateNewUser; click OK.
Step 3: Once the Default.aspx source code has been shown in Visual Web Developer, click and drag the CreateUserWizard web control (View -> Toolbox -> Login -> CreateUserWizard) to between the <form><div> ... </div></form> tags in the Default.aspx source code.
Step 4: Go to File -> Save All.
Step 5: Go to File -> View in Browser. You should see the default output of the CreateUserWizard web control, and it should look like the screen shot shown below:

You will notice that this is the same information asked for when you create users using the "Website Administration Tool" discussed in the previous tutorial, "ASP.NET 3.5 Basic User Account Management."
Next: Signing up as a New User with the Default Registration Form >>
More ASP.NET Articles
More By Codex-M