Hi,
I want to access the profile of a particular user to apply / change some
parameters.
Like a list of authorized projects. (and other properties)
The administrator will go on a web page, select the user, change the list of
authorized projects, save it.
how to do this?
thanks.
Jerome.
Brock Allen - 17 Feb 2006 17:02 GMT
ProfileCommon otherProfile = Profile.GetProfile("SomeOtherUserName");
otherProfile.Data = newValue;
otherProfile.Save();
-Brock
http://staff.develop.com/ballen
> Hi,
>
[quoted text clipped - 10 lines]
>
> Jerome.
Jéjé - 17 Feb 2006 17:16 GMT
I've no GetProfile function under the Profile namespace.
I see a GetAllProfiles function but this function don't give me access to
the ProfileBase class. (or the profilecommon class)
> ProfileCommon otherProfile = Profile.GetProfile("SomeOtherUserName");
> otherProfile.Data = newValue;
[quoted text clipped - 17 lines]
>>
>> Jerome.
Jéjé - 17 Feb 2006 17:29 GMT
oups... after some research I found it
I'm using a custom profile (inherited from profilebase) which don't give me
access to the profile.
but the solution appear to be simple:
I have to create a profile object with the username
Profile.Create(username)
which is the same code has the getprofile function automatically generated
in the profilecommon class.
> I've no GetProfile function under the Profile namespace.
> I see a GetAllProfiles function but this function don't give me access to
[quoted text clipped - 21 lines]
>>>
>>> Jerome.