This project is read-only.

About RolesDataSource

The RolesDataSource is read-only datasource control, which will supply name and member count of existing roles. You can use it for displaying list of roles in a grid or such.
Is compatible with any given Role providers (such as the standard ASP.NET ones or Altairis Simple web Providers published elsewhere on CodePlex.

Example code

<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="RolesDataSource1">
        <asp:BoundField DataField="RoleName" HeaderText="RoleName" SortExpression="RoleName" />
        <asp:BoundField DataField="UserCount" HeaderText="UserCount" SortExpression="UserCount" />
<altairis:RolesDataSource ID="RolesDataSource1" runat="server" />

Special notes

This control does not allow you to add, modify or delete roles. For that, please use standard methods of Role providers.

Last edited Sep 21, 2008 at 2:31 PM by altair, version 1


No comments yet.