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  |  

telerik -- supercharge your DNN websites
  Ads  
Iron Speed Designer is a software development tool for building database, reporting, and forms applications for .NET without hand-coding.
 


  Sponsors  

Meet Our Sponsors

Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
telerik
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Passing User Data to External Website
Previous Previous
 
Next Next
New Post 1/29/2006 11:58 AM
User is offline Steven Tidwell
7 posts
10th Ranked


Passing User Data to External Website 

This question might have already been answered and if so I do apologize for reasking it.

I'm using DNN 3.2 and I'm building a seperate website, on the same server, for a ticket tracking system that we use for work.  How can I capture the current users information, such as username and roles.

I've imported the DotNetNuke.DLL into my current project and have tried using the

         with DotNetNuke.Entities.Users.UserController.GetCurrentUserInfo

               Dim X, Y as String

      X = .UserName

end with

Label1.text = X

However, I'm not getting the information to show up in my label.  Can anyone help with this question, I would greatly appreciate it.

 

Thanks

 
New Post 2/1/2006 1:40 PM
User is offline Scott Shepherd
10 posts
www.willowtreesoftware.com
10th Ranked


Re: Passing User Data to External Website 

The GetCurrentUserInfo Method uses the context of the user that is logged in. Since you are making a call from an external website you are not in that same context and so that method call will have no value to you, as you are seeing.  The other issue is that there could be several users logged in at the same time so that call would not know which one to give you info for anyway.

In the DNN database there is a table called "UsersOnline" that should give you what you are looking for. You could query that table to see all the current users, unless I am misunderstanding what you are trying to do in your "External / separate website".  Please clarify if this does not meet your needs. Thanks.


Scott Shepherd
WillowTree Software
 
New Post 2/6/2006 12:02 PM
User is offline Steven Tidwell
7 posts
10th Ranked


Re: Passing User Data to External Website 

Thanks for the reply.  I had already considered that option, but with more than 1 user online it becomes void. 

How about this, does anyone know how to read the user name out of the cookie that is created?  I don't kneed anything but to the users name.

 

Thanks

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Passing User Data to External Website
 


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.

 


MaximumASP
MaximumASP provides a wide array of web hosting plans to fit any hosting need. We also provide software and services needed to keep it running optimally.
MaximumASP.com
Mad Development: dotnetnuke design and development
We are an expert Dotnetnuke shop specializing in developing solutions that merge the requirements of design and branding, content management, ecommerce, search engine optimization and business logic.
www.MadDevelopment.com
telerik
telerik r.a.d.controls suite is the most innovative and comprehensive toolset for ASP.NET development, tailored for seamless integration with the DotNetNuke project. This integrated collection of controls allows professionals to build web-solutions with the UI richness and responsiveness of desktop applications.
dnn.telerik.com

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