Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
The best choice for your web site host, email hosting, and domain registration.
 


  Sponsors  

Meet Our Sponsors

Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
telerik
ExactTarget email software solutions
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Get Users by Role ID
Previous Previous
 
Next Next
New Post 4/16/2007 9:48 AM
User is offline frankosaurus
18 posts
10th Ranked


Get Users by Role ID 

I'm working on a custom module for DNN 3.3.7. There are about 1500 registered users on my site, divided up amongst about 50 roles.

We'd like to let users retrieve a list of all other users sharing their role ID and then email all the users within that role. For example, Joe Smith is in the programmers role. We'd like him to be able to retrieve contact info for all the other programmers and send them an email.

I'm trying to figure out the best way to retrieve all the users within a role. I have a custom member management module I purchased that appears to be calling Membership.GetAllUsers(), and then filtering manually in code. Within 1500 users, this ends up being really slow with a separate database query for every user.

Is it appropriate to just write a new stored procedure in my custom module that searches on Role ID? Is this method likely to break in upcoming DNN upgrades?

I'm relatively new with module development, so any hints would be appreciated.

Thanks, Frank

 

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Get Users by Role ID
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


DNNSpired.com
Inspired to extend DotNetNuke®, everyday.
www.DNNSpired.com
TMA Resources
TMA Resources is a software company providing eBusiness solutions for the Association market.
www.tmaresources.com
DotNetNuke Hosting Provider UK
UK leading DotNetNuke Hosting provider. Owned and operated by a Microsoft Gold Certified Partner.
www.DNN-Portals.co.uk

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP