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  |  

AspDotNetStoreFront
  Ads  
r2i.ntegrated
 


  Sponsors  

Meet Our Sponsors

telerik
ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  How can I get the user?
Previous Previous
 
Next Next
New Post 8/28/2006 6:08 AM
User is offline moonshiner
46 posts
10th Ranked


How can I get the user? 

Hey

I have a module which displays data based on which user is viewing the module. So user A get to see his data, but he cannot see the data of user B. I need a way to determine who the user is, so I can display for him his data (and not somebody elses data)...

Is there a function in DNN for this?

any suggestions?

ps: I use DNN with Starter Kit in visual studio 2005

 
New Post 8/28/2006 6:36 AM
User is offline William Severance
847 posts
www.wesnetdesigns.com
7th Ranked






Re: How can I get the user? 

As your module will inherit from PortalModuleBase, you can reference its read only properties:

Public ReadOnly Property UserId() As Integer

Public ReadOnly Property UserInfo() As UserInfo

to obtain the current user's UserId and if necessary additional UserInfo such as FirstName, LastName, UserName, DisplayName, and Membership.


Bill, WESNet Designs
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  How can I get the user?
 


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.

 


Swanzey Internet Group LLC
DotNetNuke design, development, e-Commerce, hosting, maintenance, and training. Exclusively DotNetNuke.
www.swanzey.com
Lucede Systems Group
Providing a full range of IT services for large and medium sized companies
www.lucede.com
Adaptive InfoSystems, Inc.
We provide custom programming and various levels of support for DotNetNuke and the .Net framework.
www.aisysweb.com

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