About UsersDataSource

The UsersDataSource is read-only datasource control, which will supply all available information about membership users. You can use it for displaying list of users in a grid or such.
Is compatible with any given Membership 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="UsersDataSource1">
    <Columns>
        <asp:BoundField DataField="UserName" HeaderText="UserName" ReadOnly="True" SortExpression="UserName" />
        <asp:BoundField DataField="Email" HeaderText="Email" SortExpression="Email" />
        <asp:BoundField DataField="PasswordQuestion" HeaderText="PasswordQuestion" ReadOnly="True" SortExpression="PasswordQuestion" />
        <asp:BoundField DataField="Comment" HeaderText="Comment" SortExpression="Comment" />
        <asp:CheckBoxField DataField="IsApproved" HeaderText="IsApproved" SortExpression="IsApproved" />
        <asp:CheckBoxField DataField="IsLockedOut" HeaderText="IsLockedOut" ReadOnly="True" SortExpression="IsLockedOut" />
        <asp:BoundField DataField="LastLockoutDate" HeaderText="LastLockoutDate" ReadOnly="True" SortExpression="LastLockoutDate" />
        <asp:BoundField DataField="CreationDate" HeaderText="CreationDate" ReadOnly="True" SortExpression="CreationDate" />
        <asp:BoundField DataField="LastLoginDate" HeaderText="LastLoginDate" SortExpression="LastLoginDate" />
        <asp:BoundField DataField="LastActivityDate" HeaderText="LastActivityDate" SortExpression="LastActivityDate" />
        <asp:BoundField DataField="LastPasswordChangedDate" HeaderText="LastPasswordChangedDate" ReadOnly="True" SortExpression="LastPasswordChangedDate" />
        <asp:CheckBoxField DataField="IsOnline" HeaderText="IsOnline" ReadOnly="True" SortExpression="IsOnline" />
        <asp:BoundField DataField="ProviderName" HeaderText="ProviderName" ReadOnly="True" SortExpression="ProviderName" />
    </Columns>
</asp:GridView>
<altairis:UsersDataSource ID="UsersDataSource1" runat="server" />

Special notes

This control does not allow you to add, modify or delete users. For that, please use standard methods of Membership providers or designated controls.

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

Comments

No comments yet.