Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Unable to access User Profile PropertyUnable to access User Profile Property
Previous
 
Next
New Post
6/22/2006 1:29 PM
 

I have a new installation version 4.3.1 that I'm working on configuring.

I need one custom User Profile Property, when I add it in the Manage Profile Properties under the Admin >> User Accounts it adds fine but when you view it in the Edit Profile the category shows up but the property name does not show up? The value is editable.

Am I missing a step to adding or registering the Profile Property?

Also I need to be able to access the user profile properties value programmatically but can not do this as well.

I not sure If I have two separate issues here or the same one.

Code Sample:

Dim objUserProfile As New UserProfile
Dim strMemberCode As String = objUserProfile.GetPropertyValue("MemberCode")
Label1.Text = "My MemberCode:" & strMemberCode

Any help or direction would be appreciated.

I hope I'm posting this in the correct forum for this type of issue?

Thanks,

 
New Post
6/22/2006 2:29 PM
 

I was just able to find some answers.

Adding the property name nad help into the /Admin/Users/App_LocalResources/Profile.ascx.resx

Just follow the other properties as an example.

 

And I was able to access the user profile with:

Code Example:

 Dim objUserController As New UserController
 Dim objUserProfile As New UserProfile
 Dim objUser As UserInfo = objUserController.GetUser(PortalId, MyBase.UserId, False)
 Dim strMemberCode As String = ""
 strMemberCode = objUser.Profile.GetPropertyValue("MemberCode")

 

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Unable to access User Profile PropertyUnable to access User Profile Property


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, 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 DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out