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  |  

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


  Ads  
OnyakTech
 


  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...  Getting Userinfo from Username
Previous Previous
 
Next Next
New Post 12/14/2006 2:39 AM
User is offline Mubashir Ahmed
11 posts
www.storan.com
10th Ranked


Getting Userinfo from Username 

Hii All,

I have username and I want to get info like, User Email, LastLogin data, etc from it? How can i do this. On DNN 3.5 I am using MemberRole.dll 1.0.0.0 to acheive this. But when i tries the same on DNN 4.5, it gives error.

Please help me out.

Thanks,
Mubashir

 
New Post 12/14/2006 10:59 AM
User is offline sovens
58 posts
www.orcadesigns.co.nz
10th Ranked


Re: Getting Userinfo from Username 
Modified By sovens  on 12/14/2006 3:00:27 PM)

this is what im using in DNN 3.3.4

 Dim ctlDNNUser As New UserController

Dim dnnUser As UserInfo = ctlDNNUser.GetUser(PortalSettings.PortalId, UserId)

then you can use "dnnUser.Displayname" and so on

As you can see im using the userID to get the userinfo but try it with username if you must use the username.

 
New Post 12/17/2006 8:52 AM
User is offline Leandro Montedoro
23 posts
10th Ranked


Re: Getting Userinfo from Username 
Hi:

In DNN 4 you should use something like this:

Dim USR As New UserInfo
USR = UserController.GetUserByName(PortalId, "mubashir")

All my best,
Leandro Montedoro
 
New Post 12/17/2006 8:19 PM
User is offline Mubashir Ahmed
11 posts
www.storan.com
10th Ranked


Re: Getting Userinfo from Username 

Thanks  a million.

Mubashir

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Getting Userinfo from Username
 


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.

 


Subzero Solutions
Dutch / English DotNetNuke consultancy services. Custom module development in any version. Complete application integration. Small business portal hosting. Your ideas our innovation - Your success our motivation. K.v.k Amsterdam: 34236342
www.subzero-solutions.net
Hosting for DotNetNuke
SiteGround.com is the best place to host your DotNetNuke website! Expert DotNetNuke support, reliable servers, low price!
www.SiteGround.com
Code Endeavors, LLC
Do you Endeavor to Enhance your DotNetNuke designs by utilizing AJAX technologies to more efficient interactive web experiences
www.codeendeavors.com

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