Learning Resources
 

Applying Roles and Security


To configure the Web site for membership and roles

  1. On the Website menu, click ASP.NET Configuration.

    The Web Site Administration Tool is displayed in a browser window.

  2. Select the Security tab, click the Use the security Setup Wizard to configure security step by step link, and then click Next.

  3. 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.)

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

  5. Click Next.

  6. Under Define Roles, select the Enable roles for this Web site check box, and then click Next.

  7. Under Create New Role, in the New Role Name box enter Admin, and then click Add Role.

  8. In the New Role Name box enter Member and then click Add Role

    The roles you just created appear under Existing Roles.

--Microsoft