Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

PortalWebHosting
  Ads  
Active Modules -- Active Forums for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
telerik
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Configure It! (...  How to read Profile Property
Previous Previous
 
Next Next
New Post 6/24/2008 6:51 PM
Resolved
User is offline pullp
34 posts
10th Ranked


How to read Profile Property 

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
User is offline pullp
34 posts
10th Ranked


Re: How to read Profile Property 

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
User is offline Olivier Jooris
18 posts
www.bitconsultancy.be
10th Ranked




Re: How to read Profile Property 
Modified By Olivier Jooris  on 6/25/2008 4:23:10 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
User is offline pullp
34 posts
10th Ranked


Re: How to read Profile Property 

 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 Previous
 
Next Next
  Forum  General DotNetN...  Configure It! (...  How 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.

 


Expressnet - DotNetNuke Hosting
Expressnet provide premium quality ASP.NET Web Hosting. We specialise in Windows based products including ASP.NET and Microsoft SQL Server. We offer fantastic value packages for DotNetNuke hosting. We also offer free asp.net web hosting
www.expressnet.com.au
Softech Development, Inc.
We help your business work smarter with DotNetNuke. Whether you need a new implementation, a custom module or skin for an existing implementation, or integration with your business processes, Softech has the experience and expertise to make it happen.
www.softechdevelopment.com
Module Development by Engage Software
Specializing in custom module development, training and skinning.
www.engagesoftware.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP