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. Advertisements

  2. Ron

    PeterKellner Guest

    How about using

    Roles.IsUserInRole(username,rolename)

    ?
    Peter Kellner
    http://peterkellner.net
     
    PeterKellner, May 18, 2006
    #2
    1. Advertisements

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.