Hi Everybody.
I'm building a private messanging system which will be installed on top of our DotNetNuke installation.
In this system, i use prototype window to display the "send message" window on-top of the current displayed page. In this window there is basically an iframe showing an aspx page I've placed inside the dotnetnuke folder. The problem here is that I seem to be unable to user DotNetNuke method in this aspx page.
For example, in this page I'm trying to get the current logged in user's display name and put in the "sender" textbox. I do this using the following line of code: DotNetNuke.Entities.Users.UserController.GetCurrentUserInfo().DisplayName;
However, GetCurrentUserInfo() returns null in this case. I assume this is a result of the fact I do not inherit any dotnetnuke base classes (such as portalmodulebase).
Moreover, in some of the modules I'm developing for our website I am using the awesome ajaxpro class library, which allows me to define some methods as ajax method and thus call them from client-side javascript. Yet, in those methods too, I seem to be unable to access the GetCurrentUserInfo() and other dotnetnuke classes.
Is there any other way I can retrieve such information? Does anyone have any suggetions for me?
I thank in advance to anyone who spent the time reading this and trying to help.
Cheers!