External Data based on logged in Username ?

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
12/21/2009 4:51:42 PM
Gravatar
Total Posts 101

External Data based on logged in Username ?

I have a requirement to display some data (based on who is logged in) from a database.

My first thought was to hack a asp.net page with a 'Get param..' etc.

Then display this using an iFrame in the content panel.

Is there a better way ? And can I get access to the logged in username from the iFrame content ?

Thanks

12/22/2009 7:07:34 AM
Gravatar
Total Posts 18439

Re: External Data based on logged in Username ?

If the iframe is a .net page in the same domain you should be able to get the user name using Page.Request.User.Identity.Name if the user is authenticated.

Else you would have to get it from the page containing the iframe and pass it in as a query string param

Hope it helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.