Sign In  |  Register
 
 DotNetNuke Powered!
DotNetNuke Support Forums

Getting User Profile Information

Rate this topic:

Please Register to post a reply.
Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.

AuthorMessages
jncraig
Posts:83



09/07/2007 11:22 AM  

John,

 

I've created a custom profile property -- call it MyProfileProperty.

How do I retrieve the value of this property in code?

 

Thanks in advance!

John Mitchell
Posts:3479



09/07/2007 11:40 AM  

Hi Joe,

You can grab custom profile porperties like this:

DotNetNuke.Entities.Profile.ProfilePropertyDefinition profilePropDef = UserInfo.Profile.ProfileProperties["MyProfileProperty"]

if
(profilePropDef != null
    string userProfileValue = profilePropDef.PropertyValue;

jncraig
Posts:83



09/07/2007 12:04 PM  
Thank!
Please Register to post a reply.
Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.

Forums >DotNetNuke Support >General-DNN-Help > Getting User Profile Information



ActiveForums 3.7
Visit our Store for great DotNetNuke Modules and Skins
DNNMasters Sitemap/Google Sitemap 3.0

Item codeSM3-01
Price$29.00
Product Information 
DotNetNuke CSS NavMenu 3.3 (Developers)

Item codeCSSNM33DEV
Base Price$149.00
Product Information 
Snapsis PageBlaster 3.3.2 Performance for DotNetNuke - Professional Edition

AuthorJohn Mitchell
Base Price$79.00
Product Information 
XDAkuna (Web 2.0 CSS XHTML Skin)

Item codeXDAkuna
AuthorNina Meiers
Price$49.00
Product Information 
XDAkuna (Web 2.0 CSS XHTML Skin)

AuthorNina Meiers
Price$49.00
Product Information