I have a drop down list box which lists roles. I want to get the list of users having that role. I mean list of users that are in \"Administrator\" role or \"CanEdit\" role.
If you want to avoid using the context directly you can use the RoleManager with the following snippet
roleManager.FindByName("Administrator").Users
or
roleManager.FindByName("CanEdit").Users
For a short discussion about this topic have a look at the this thread