Bind to Roles.GetRolesForUser
- From: mazdotnet <maflatoun@xxxxxxxxx>
- Date: Wed, 12 Sep 2007 17:43:48 -0700
Hi,
I have a GridView that I want to bind user roles to
gvUserRoles.DataSource = Roles.GetRolesForUser("Username");
gvUserRoles.DataBind();
How can access the roles using
<asp:GridView ID="gvUserRoles" runat="server"
AutoGenerateColumns="false">
<Columns>
<asp:TemplateField HeaderText="Roles">
<ItemTemplate>
Something like this???? <%#
Eval("RoleName")%>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
Thanks
M.
.
- Follow-Ups:
- Re: Bind to Roles.GetRolesForUser
- From: Alexey Smirnov
- Re: Bind to Roles.GetRolesForUser
- Prev by Date: Re: The IListSource does not contain any data sources.
- Next by Date: RE: Can you use an Accordion control in a masterpage?
- Previous by thread: Re: The IListSource does not contain any data sources.
- Next by thread: Re: Bind to Roles.GetRolesForUser
- Index(es):