Asp.net 2.0 provides a good login control. Instead of the developer coding his heads out on creating the login control, he / she can directly use the login control on the page and let ASP.net take care of the logistics.
To use the login control its important that you configure the database to store the credentials. On creating the website in ASP.net, you can click on the Web site menu and select the ASP.net configuration.
There is also other way of configuring the database using aspnet-regsql.exe tool from the visual studio command prompt.
After selecting the ASP.net configuration on Web site, the configuration of your web site starts on a browser. You will be able to configure the security which essentially enables you to set up and edit users, roles, and access permissions for your site, application configuration helps you manage your application's configuration settings and the provider configuration enables you to specify where and how to store administration data used by your Web site.
Select the Security configuration to open up the security configuration wizard which will guide you step by step to configure the settings. There are 7 steps involved to complete the activity.
Step 1: Welcome
Step 2: Select Access Method
Step 3: Data Store
Step 4: Define Roles
Step 5: Add New Users
Step 6: Add New Access Rules
Step 7: Complete
Click on the Next for Step 1. The second step asks you whether you want the application to use authentication using ‘Windows’ or ‘Forms’.
Selecting ‘INTERNET’ on this option will essentially enable the application to use its own login id and passwords. The third screen talks about the providers to use for data. The default provider for your application would be AspNetSqlProvider
You can use the default provider. Click Next on this screen to Define the roles for you application. This roles will be the roles that you want in the application. Next is the user definition screen where you would be able to add users to your application.
No comments:
Post a Comment