Roles and Memberships

Discussion in 'ASP .Net Security' started by Ron, May 16, 2006.

  1. Ron

    Ron Guest

    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
     
    Ron, May 16, 2006
    #1
    1. Advertising

  2. Ron

    PeterKellner Guest

    On Tue, 16 May 2006 07:59:03 -0700, Ron
    <> 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
     
    PeterKellner, May 18, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mike

    Creating site memberships

    Mike, Apr 29, 2004, in forum: HTML
    Replies:
    5
    Views:
    405
    Long - CM web hosting
    Apr 29, 2004
  2. Jonathan Wood

    Help with ASP.NET Memberships

    Jonathan Wood, Oct 15, 2007, in forum: ASP .Net
    Replies:
    13
    Views:
    601
    Scott M.
    Oct 18, 2007
  3. Jéjé
    Replies:
    0
    Views:
    260
    Jéjé
    Sep 27, 2005
  4. Cross Forest Group Memberships

    , Feb 4, 2006, in forum: ASP .Net Security
    Replies:
    12
    Views:
    825
    Dominick Baier [DevelopMentor]
    Feb 8, 2006
  5. Andy Melick

    AD Group Memberships (MyADMembershipProvider) Question

    Andy Melick, Oct 16, 2006, in forum: ASP .Net Security
    Replies:
    1
    Views:
    368
    Joe Kaplan
    Oct 16, 2006
Loading...

Share This Page