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  |  

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


  Ads  
Active Modules -- Active Forums for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

MadCap Software, Inc.
AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
Click here to go to dev.live.com for Windows Live developer resources
SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
 


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
5028 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.

 


Disgrafic
Diseño y creación de portales web dinámicos :: Desarrollo de módulos personalizados :: Soluciones a medida :: Imagen Corporativa :: Tu proveedor DNN en España
www.disgrafic.com
DM Analytics, LLC
DM Analytics, LLC provides software solutions that facilitate rapid development of independent or dependent datamarts and their associated web-based reporting.
www.dmanalytics.com
Integral Hosting | DNN only $14.95/month
Experienced .NET hosting on Windows 2003, ASP.NET 1.1 & 2.0, MSSQL with real technical support.
www.integralhosting.com

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