Re: Roles and Memberships



On Tue, 16 May 2006 07:59:03 -0700, Ron
<Ron@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

Hi,
I need to retrieve only users and there information in the aspnet_Membership
table that are associated with certain roles and then populate a GridView
with only those users found that belong to those roles.
I have searched through all the class associated to try and find some method
that would help but i think i am missing something.
Any suggestions would be greatly appreciated.

Thanks Ron

How about using

Roles.IsUserInRole(username,rolename)

?
Peter Kellner
http://peterkellner.net
.



Relevant Pages

  • Re: Hiding a column
    ... behind, then how do you retrieve the data from GridView Row, ... you can also consider using this way to store and retrieve the ID ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.aspnet.datagridcontrol)
  • NEWBIE: problem populating a GridView
    ... I have a GridView control in my webpage. ... gridUsers_RowDataBound am I having problem populating the controls with info ... The user object doesn't get a MembershipUser value, ... Here I will put code that manually populate the columns in the ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Is there an alternative to a combobox for selecting -- VB2005?
    ... delay after S to retrieve data and populate the combo box... ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Navigation services popup menu
    ... > Now I can see how to populate the popup menu in NavPutFile, ... > can't see is how to retrieve the user's choice of filetype after the OK ...
    (comp.sys.mac.programmer.help)
  • Re: Is there an alternative to a combobox for selecting -- VB2005?
    ... delay after S to retrieve data and populate the combo box... ...
    (microsoft.public.dotnet.languages.vb)