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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Custom Profile PropertiesCustom Profile Properties
Previous
 
Next
New Post
7/31/2006 9:13 PM
 
Hey there,

I am trying to add a foreign key to the user profile so that I can access a secondary DB from custom module.
I have added a custom profile property and have set its visibilty to false since I obviously don't want my users to be able to change that.
My question now is how do I access that property from my module?
I can certainly see the UserInfo but Intellisense only shows me the "common" properties. I was hoping to see my custom properties like when using the ASP 2.0 membership profile.
But even if there is no Intellisense support (still hoping there is and I just don't know where to look! *g), how do I get a hold of my property values?

Thanks for your support!

Tillman
 
New Post
8/1/2006 4:21 AM
 

You may want to look at DNN documents and blogs - allot of things have changed and guys from the core try to keep up with the texts and documentation to explain them.

Which version of DNN are you using? If it's the latest one you can find example of the things you are doing DNN core itself


Thanks,
Vladan Strigo
NETMedia

My website: Vladan.Strigo.NET

Vladan.Strigo.NET: Projects
* Advanced VS2005 development approach - BlankModule
* DNN & Microsoft Ajax best practices guidance

Vladan.Strigo.NET: Resources
* Comprehensive list of DNN 4 Module development resources

 
New Post
8/1/2006 8:13 AM
 
Hey Vladan,

thanks again for jumping to my rescue!
I am using 4.3.3 and I wonder where to find some hints of how to access a custom profiler property called "TestKey" for example.

Cheers,

Tillman
 
New Post
8/1/2006 8:54 AM
 

Hi Tillman,

It's not a problem :)

You can start by viewing controls in Admin/Users, especially:

admin\Users\EditProfileDefinition.ascx
admin\Users\ProfileDefinitions.ascx

and then by searching for the profile functions (e.g. search on ProfileController.GetPropertyDefinition) you can probably find some other usage examples, and also by checking out the ProfileController generally you can get information you need.

what else to say... good luck :)

 


Thanks,
Vladan Strigo
NETMedia

My website: Vladan.Strigo.NET

Vladan.Strigo.NET: Projects
* Advanced VS2005 development approach - BlankModule
* DNN & Microsoft Ajax best practices guidance

Vladan.Strigo.NET: Resources
* Comprehensive list of DNN 4 Module development resources

 
New Post
8/2/2006 3:13 PM
 
Hi Tillman,
Here is how I access my custom profile property. I don't if it helps. I post it anyway.

Dim oUserInfo As DotNetNuke.Entities.Users.UserInfo = DotNetNuke.Entities.Users.UserController.GetCurrentUserInfo()

oUserInfo.Profile.ProfileProperties.GetByName("CTheme").PropertyValue

Needs to make sure that the user is logged in if not will cause error.

I could not find a way to check for logged in user. The Profile.isanonymous always returns true. Any hint or suggestion would be greatly appreciated.

apkel
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Custom Profile PropertiesCustom Profile Properties


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