Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > Roles and Memberships

Reply
Thread Tools

Roles and Memberships

 
 
Ron
Guest
Posts: n/a
 
      05-16-2006
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
 
Reply With Quote
 
 
 
 
PeterKellner
Guest
Posts: n/a
 
      05-17-2006
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with ASP.NET Memberships Jonathan Wood ASP .Net 13 10-18-2007 01:01 AM
AD Group Memberships (MyADMembershipProvider) Question Andy Melick ASP .Net Security 1 10-16-2006 07:25 PM
Cross Forest Group Memberships tyler.lloyd@gmail.com ASP .Net Security 12 02-08-2006 06:50 PM
Some charter memberships still available. PoppinFresh MCDST 1 09-15-2004 04:56 PM
Creating site memberships Mike HTML 5 04-29-2004 04:47 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57