Getting log in credentials in admin Options
KeithChadwick
Posted: Friday, August 08, 2008 8:32:47 PM

Rank: Enthusiast

Joined: 4/11/2008
Posts: 36
Location: Ottawa Canada
Hey Everyone,

Quick question, I have a ascx control bound to the content node in the umbraco admin center. This control needs to get the current umbraco user id and passs it around internally.

How can I get this via the umbraco class libraries?

Much appreciated.

Cheers
Keith
Dirk
Posted: Friday, August 08, 2008 8:50:38 PM

Rank: Addict

Joined: 9/27/2007
Posts: 977
Location: Belgium
Need this:

Code:
UmbracoEnsuredPage bp = new UmbracoEnsuredPage();
User u = bp.getUser();


Hope that helps.
/Dirk


level 1 certified - umbraco blog at netaddicts.be - working on an integrated forum4umbraco
KeithChadwick
Posted: Friday, August 08, 2008 9:02:52 PM

Rank: Enthusiast

Joined: 4/11/2008
Posts: 36
Location: Ottawa Canada
Thanks that did the trick. UmbracoEnsuredPage!! Why didn't I think of that! It's so obvious!!!

Cheers
Keith
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.