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 6: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 1: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 5: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 5: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 12: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


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
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. 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.