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  |  

Affordable ASP.NET Hosting Service
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
 


  Sponsors  

Meet Our Sponsors

WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
The best choice for your web site host, email hosting, and domain registration.
CrystalTech Web Hosting™
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Iframe Module [...  How to retrieve the dnn UserName
Previous Previous
 
Next Next
New Post 9/27/2005 2:21 PM
User is offline Michael Pharis
2 posts
10th Ranked


How to retrieve the dnn UserName  

I am new to ASP.Net and DNN. I have a custom application that is running in an IFrame and need to retrieve the DNN User Name (logged in User).

I've tried the following VB.Net code::::

Dim PortalID As Integer, UserID As Integer
Dim UserName As String
Dim dnnUserCtrl As New DotNetNuke.Entities.Users.UserController
Dim dnnUserInfo As New DotNetNuke.Entities.Users.UserInfo

PortalID = dnnUserCtrl.GetCurrentUserInfo.PortalID
UserID = dnnUserCtrl.GetCurrentUserInfo.UserID
Username = dnnUserCtrl.GetCurrentUserInfo.Username

Resulting values are:

PrortalID = -1, UserID = -1, and Username = ''

 

What can i do to retrieve the User Name?

 
New Post 9/29/2005 9:08 AM
User is offline Hugo Silva
3 posts
10th Ranked


Re: How to retrieve the dnn UserName  
I've got the same question, is it possible or not?
 
New Post 9/30/2005 6:02 AM
User is offline Michael Pharis
2 posts
10th Ranked


Re: How to retrieve the dnn UserName  

I've not yet gotten it working but i found some interesting ways to get the User or User id at http://forums.asp.net/1045674/showpost.aspx   

The way I understand it, an application opened through an IFrame does not have access to the DotNetNuke properties because it is in like another independent session. So this site discusses ways to pass the specific property values to the new URL/Application without modifing the DNN core code.

 
New Post 1/12/2006 3:21 PM
User is offline David Pugmire
10 posts
www.pugmires.com
10th Ranked


Re: How to retrieve the dnn UserName  

On a more technical level, there is a way to create an ASPX page in ones DNN project and inherit from DotNetNuke.Framework.PageBase.  The idea is to then get this page to show up in the IFrame.

The problem I am having is that even by doing this, it doesnt seem to be aware which portal called the page.  Even if my IFrame is on portal 123, the page in the IFrame (again, while inheriting PageBase) thinks that it is on portal 0.

Any thoughts?

 
New Post 1/16/2006 6:45 PM
User is offline Michael Flanakin
994 posts
www.michaelflanakin.com
7th Ranked




Re: How to retrieve the dnn UserName 
Modified By Michael Flanakin  on 1/16/2006 10:48:10 PM)
Currently, this is not possible with only the IFrame. Expect it to be added in the future, tho. Once a new project lead is assigned, you will probably see some quick turn-arounds in the next release, which should incude this capability, since its probably the most requested addition.

Michael Flanakin | Microsoft Consulting Services
www.michaelflanakin.com
 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  Iframe Module [...  How to retrieve the dnn 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.

 


Get Smarter Mail, SmarterStats, SmarterTickets
Windows mail server, web log analytics, and customer service management software - Free Editions Available!
www.smartertools.com
DotNetNuke Modules, Skins, Training and Consulting
If you want DotNetNuke done right then look no further. Developed Solutions provides module development, skin design, user and developer training and consulting. Based in Adelaide, Australia, we offer our services worldwide.
www.developedsolutions.com.au
Venexus, Inc.
Need custom a custom DotNetNuke module? From module planning to deployment, including training and support, Venexus developers deliver end-to-end web solutions on time and on budget.
www.venexus.com

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