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  |  

ExactTarget - What's Your Score
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
WebHostForAsp.net
 


  Sponsors  

Meet Our Sponsors

SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  API related to Membership
Previous Previous
 
Next Next
New Post 1/17/2008 12:04 AM
User is offline Snehal Dhamke
27 posts
10th Ranked


API related to Membership 

Hello,

I am using Dotnetnuke4. I want to access usernames and roles assigned to users programatically in my module. how to do this.

 Which APIs I have to use? Please reply me as early as possible.

 
New Post 1/17/2008 7:20 AM
User is offline Mitch Sellers
5026 posts
www.mitchelsellers.com
3rd Ranked




Re: API related to Membership 

Have a look at the DotNetNuke UserController and RoleController.

The user controller is in the DotNetNuke.Entities.Users namespace and I believe the RoleController is in DotNetNuke.Entities.Roles I am not infront of a development machine or I would look up the specifics for you.


-Mitchel Sellers
MCITP, MCPD, MCTS
Director of Development
IowaComputerGurus Inc.
View Mitchel Sellers's profile on LinkedIn

Visit mitchelsellers.com for DotNetNuke tutorials, modules and technical help

Custom DotNetNuke Services Available (Development, etc).

My sites are hosted with 3Essentials
 
New Post 1/18/2008 2:49 AM
User is offline Snehal Dhamke
27 posts
10th Ranked


Re: API related to Membership 

Thank You  for replying me.

I have seen UserController. But there is no namespace like DotNetNuke.Entities.Roles.

One more thing, UserController also gives role through  GetCurrentUserInfo().Roles. But I want role id rather than string(role name).

And also it will be good if  I just get highest level Role. It is giving all roles applied to user(register user, subscriber, Administator.- from this i just want Administrator. I dont want others) 

Regards

Snehal

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  API related to Membership
 


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.

 


Web Valley
Website design, Database development
www.webvalley.com
UK DotNetNuke CMS installation, hosting & support
UK based installation, branding, customising, integration, hosting, training, support and maintenance services for DotNetNuke
www.deburca.co.uk
Need Help with your DotNetNuke website?
Jango Studios offers exclusive DotNetNuke Skin Design, Module Development, Web Marketing and Web Hosting.
www.jangostudios.net

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