ASP.NET/Roles

A role is a group of users who are uniqely identified by the set of privileges they are given. A typical website has three roles:


 * Administrator
 * Power User
 * User

An administrator has all privileges over the particular site while power user and ordinary users don't have.

Creation of Roles
Roles can be created in various ways. The typical process of role creation involves using the Role Manager tag in Web.config

Example

  

  

      







 

Roles can also be assigned or modified programmatically using the Role class.

Using the Website Administration Tool
Roles can be created in .NET 2.0 using the ASP.NET Website Administration tool. This tool is available in the Solution Explorer toolbar.

The tool allows the user to change


 * Security settings
 * Application Configuration
 * Provider Configuration

A few snapshots of the tool are availabe below. These snapshots are self-explanatory: