RoleGroup Class
.NET Framework 3.0
Associates a content template in a LoginView control with one or more roles defined for the Web site. This class cannot be inherited.
Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)
System.Web.UI.WebControls Namespace
Assembly: System.Web (in system.web.dll)
You can use the LoginView control to define a set of content templates that contain the content that is displayed to Web site users based on the role assigned by Web site administrators. The RoleGroup class is used by the LoginView control to associate a content template with a set of roles.
To dynamically assign a template to the role group, set the ContentTemplate property to a reference to an object that implements the ITemplate interface.
You must configure role management to use the RoleGroup class. For more information, see Understanding Role Management.
- AspNetHostingPermission to run the RoleGroup control in a hosted environment. Associated enumeration: Minimal
Reference
RoleGroup MembersSystem.Web.UI.WebControls Namespace
Other Resources
Understanding Role ManagementCommunity Additions
ADD
Show: