System.Web.UI.WebControls.RoleGroup Class

Associates a content template in a System.Web.UI.WebControls.LoginView control with one or more roles defined for the Web site. This class cannot be inherited.

See Also: RoleGroup Members

Syntax

public sealed class RoleGroup

Remarks

You can use the System.Web.UI.WebControls.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 System.Web.UI.WebControls.RoleGroup class is used by the System.Web.UI.WebControls.LoginView control to associate a content template with a set of roles.

To dynamically assign a template to the role group, set the RoleGroup.ContentTemplate property to a reference to an object that implements the System.Web.UI.ITemplate interface.

You must configure role management to use the System.Web.UI.WebControls.RoleGroup class. For more information, see Understanding Role Management.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0