Not much luck there. I tried calling that method as follows, but I'm still not able to get any of the custom profile information for the current user after logging them in.
ProfileBase profile = ProfileBase.Create(member_id);
profile.SetPropertyValue("Chapter", "Chapter Name");
profile.SetPropertyValue("FirstName", "First Name");
profile.SetPropertyValue("LastName", "Last Name");
However, if I do just try to get a value for the UserName of the current user, it is showing up correctly, just none of the custom properties.
I originally had all of this information stored in a custom MembershipUser object, just extending the stock .Net class. But whenever I have to access this information, I have to call the GetUser() method, which in turn has to hit a couple different databases to retrieve this information, and doing this on every single page doesn't seem terribly efficient.
I also considered just storing the MembershipUser object in the session state, but I figured that since most of what I'm reading points me at using a Profile object instead, that I would go that route. However, I'm still somewhat unclear as to where the Profile object is stored.
I would be fine creating a custom object to store all this information in, and then manually store it in the session, etc., but it seems a like the structures should already be there to do this, and I'm just missing how to access them. Also, it seems problematic to keep checking to see if the session state for this custom object exists in my GetUser method, and then having to re-create it, when all that should really already be handled for me.
Anyway, I hope this is something you can help me out with...thanks!