Learning Resources
Â
Applying Roles and Security
To configure the Web site for membership and roles
-
On the Website menu, click ASP.NET Configuration.
The Web Site Administration Tool is displayed in a browser window.
-
Select the Security tab, click the Use the security Setup Wizard to configure security step by step link, and then click Next.
-
Select the From the Internet option.
This option specifies that your application will use ASP.NET forms authentication, where users will log in to the Web site by using a login page that is part of your site. (The login page was added to the site automatically when you created the Web site earlier in the walkthrough.)
-
Click Next.
The wizard displays a message stating that user information will be stored using Advanced provider settings. Your application will use the default provider, which stores membership information in a SQLÂ Server Express database file in the App_Data folder of your Web site.
-
Click Next.
-
Under Define Roles, select the Enable roles for this Web site check box, and then click Next.
-
Under Create New Role, in the New Role Name box enter Admin, and then click Add Role.
-
In the New Role Name box enter Member and then click Add Role
The roles you just created appear under Existing Roles.