Author: Naom | Posted on: 7/3/2008 1:30:03 PM | Views : 307

Hi everybody,

I'm using  Peter Kellner's excellent class in my application http://peterkellner.net/2006/09/04/addprofiletoods/.

I have the following question:

In the Roles class GetRoles method I see this code
if (showOnlyAssignedRoles == false || userInRole == true)
{
string[] usersInRole = Roles.GetUsersInRole(roleName);
RoleDataForMP rd = new RoleDataForMP();
rd.RoleName = roleName;
rd.UserName = userName;
rd.UserInRole = userInRole;
rd.NumberOfUsersInRole = usersInRole.Length;

etc.

I fixed the typo for the second parameter name, BTW.

We�re using Roles.GetUsersInRole() method and I don�t know how to see the actual code for this method or where and how should I overwrite it. In our case we filter profiles by SiteID and I only want to get the number of Users in Role for the particular SiteID.

Do you know ...

Go to the complete details ...