This tutorial was brought to you by NetroStar, a Miami-based global web design
This controls are very useful because you can build web site where you can create your own user and password and then authenticate yourself. What's more it's very easy to make and it's not time consuming. To do this, you need to have SQL Server Express installed. You can download it from the internet.
Step 1 - Find Login control in toolbox and drag it to your default aspx form. Then in the properties window on the right find CreateUserText and type "New Account". This will create a link in your Login control where you can add a new user. We should also enter a url of the site where you can create account. So in CreateUserUrl type "CreateAccount.aspx". After doing it code of your Login control should look like this:
Step 2 - We have to add a page where you can add a new user. We've specified the name of this page in step 1. So create a new WebForm and name it CreateAccount.aspx. Then find in toolbox CreateUserWizard and drag it to website. In Properties Window you only have to modify ContinueDestinationPageUrl. This will be a page where you can input again your new login and password. In this example url to this page is Default.aspx. When done code of CreateUserWizard control should be:
Step 3 - Now we have to create a page where you'll go after successful authentication. So create a new WebForm, name it SecretContent.aspx and add there a text confirming that autehntication is completed. Last thing you have to do is to find DestinationPageUrl property in your Login control and add there URL to SecretContent.aspx. So finally the code of your Login control should look like this:
This tutorial is brought to you by NetroStar, a web design company.