User Profile Question
Posted: Tue Apr 01, 2008 4:31 pm
I'm fiddling with the User.Profile because I think it would work well to store custom profile data for the users. For example, let's say your implementation requires that you store the customer's age ... I'd like to create a helper class to allow the application to add an age property to the User.Profile for use in the registration (and or profile display) screens (as well as data mining).
That leads to my question:
When is the User.Profile object instantiated? Or is it currently in use?
When I try to play with the Personalization.Profile.SetPropertyValues method on the User.Profile object I receive a null pointer exception. It looks like the Profile object is not initialized, and there is no setter for the Profile (just a getter) so I can't instantiate one myself.
Any thoughts?
Thanks,
Mike
That leads to my question:
When is the User.Profile object instantiated? Or is it currently in use?
When I try to play with the Personalization.Profile.SetPropertyValues method on the User.Profile object I receive a null pointer exception. It looks like the Profile object is not initialized, and there is no setter for the Profile (just a getter) so I can't instantiate one myself.
Any thoughts?
Thanks,
Mike