HomeHomeUsing DotNetNuk...Using DotNetNuk...Administration ...Administration ...How to read Profile PropertyHow to read Profile Property
Previous
 
Next
New Post
6/24/2008 6:51 PM
 

HI,

I have added a Profile Property called "JobType" from "Manage Profile Properties". It is of type "List".

I am writing a module which needs to get the values of the Property "JobType".
  (I know this is in dnn_lists)

How do I get this using ProfileController class?

Can anyone suggest?

 

TIA

 
New Post
6/24/2008 7:46 PM
 

ok..After searching and looking through controls, I resolved it myself.

I am posting the snippet here if in case anyone stumbles like me

 

ListController le = new ListController();
ListEntryInfoCollection lic = le.GetListEntryInfoCollection("JobType");

foreach (ListEntryInfo lif in lic)
{
    int ii = lic.Count;

    //Get the enumerator from "lic" and get enumerator and do-whatever you want with the list item
}

 
New Post
6/25/2008 12:13 AM
 

Dim CompanyID as Integer = 0 

If Userinfo.Profile.ProfileProperties("CompanyID") IsNot Nothing Then

   CompanyID = Userinfo.Profile.ProfileProperties("CompanyID").PropertyValue

End If

 
New Post
7/1/2008 7:00 PM
 

Olivier Jooris wrote

Dim CompanyID as Integer = 0 

If Userinfo.Profile.ProfileProperties("CompanyID") IsNot Nothing Then

   CompanyID = Userinfo.Profile.ProfileProperties("CompanyID").PropertyValue

End If

 

Is there a way to get Help text entered for a profile property?

 
Previous
 
Next
HomeHomeUsing DotNetNuk...Using DotNetNuk...Administration ...Administration ...How to read Profile PropertyHow to read Profile Property


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.

Attend A Webinar
Free Demo Site
Download DotNetNuke Professional Edition Trial
Have Someone Contact Me

Like Us on Facebook Join our Network on LinkedIn Follow DNN Corporate on Twitter Follow DNN on Twitter

Advertisers

DotNetNuke Scoop!

Sponsors

DotNetNuke Corporation

DotNetNuke Corp. is the steward of the DotNetNuke open source project, the most widely adopted Web Content Management Platform for building web sites and web applications on Microsoft .NET. Organizations use DotNetNuke to quickly develop and deploy interactive and dynamic web sites, intranets, extranets and web applications. The DotNetNuke platform is available in a free Community and subscription-based Professional and Enterprise Editions with an Elite Support option. DotNetNuke Corp. also operates the DotNetNuke Store where users purchase third party apps for the platform.