Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...How to retrive the logged in userHow to retrive the logged in user's profile details?
Previous
 
Next
New Post
9/1/2009 1:25 AM
 

Hi,

       I need to retrive the details of the current logged in user.

      When I searched for this, I got this code,

             UserController.GetCurrentUserInfo() will give you all the information

             UserController.GetCurrentUserInfo().FirstName

     But, sorry, I am new to DNN. Any one help me in an easy way to retrive the users information or Is there way to retrive it from the database table.

     Please  help me...

     Thank You.........

 

 
New Post
9/1/2009 1:29 AM
 

Hi,

Are you looking to get the current user information in your own code? Or are you looking to get the information to show on a page (e.g. with the HTML/Text module)?


Web applications, DNN websites, modules, skins and support
 
New Post
9/1/2009 1:32 AM
 

Hi,

     Thank you for you Replay.

     I need to retrive the details and to display in the text box.

    Thank you....

 
New Post
9/1/2009 1:38 AM
 

Alright, in code...

When you're in your module control itself (so, in the ascx or it's codebehind), you can just refer to the UserInfo property (which is in the base class PortalModuleBase). If you're in your controller for example, you can use the code you wrote in your first post.

Hope this helps.


Web applications, DNN websites, modules, skins and support
 
New Post
9/1/2009 1:47 AM
 

Hi,

    I first created a aspx file and I converted it into a module (user_info.ascx). and I using the following code in the user_info.ascx.vb.

   Imports System.Data.SqlClient
   Imports System.Data.Sql
   Imports DotNetNuke
   Imports System.Collections.Generic
   Namespace DotNetNuke.Modules.user_info


          Here on the page load event, I need to display the users profile information in n text box. Is it is possible? Please explain If it is possible.

          Please notify the changes to make.


   End Class
   End Namespace

      Thank you..

 

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...How to retrive the logged in userHow to retrive the logged in user's profile details?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, 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 DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out