Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Retrieving the profile for a particular username?

Reply
Thread Tools

Retrieving the profile for a particular username?

 
 
Jéjé
Guest
Posts: n/a
 
      02-17-2006
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.


 
Reply With Quote
 
 
 
 
Brock Allen
Guest
Posts: n/a
 
      02-17-2006
ProfileCommon otherProfile = Profile.GetProfile("SomeOtherUserName");
otherProfile.Data = newValue;
otherProfile.Save();

-Brock
http://staff.develop.com/ballen


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



 
Reply With Quote
 
 
 
 
Jéjé
Guest
Posts: n/a
 
      02-17-2006
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)


"Brock Allen" <> wrote in message
news: om...
> ProfileCommon otherProfile = Profile.GetProfile("SomeOtherUserName");
> otherProfile.Data = newValue;
> otherProfile.Save();
>
> -Brock
> http://staff.develop.com/ballen
>
>
>> 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.
>>

>
>



 
Reply With Quote
 
Jéjé
Guest
Posts: n/a
 
      02-17-2006
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.

"Jéjé" <willgart_A_@hotmail_A_.com> wrote in message
news:OleBvX%...
> 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)
>
>
> "Brock Allen" <> wrote in message
> news: om...
>> ProfileCommon otherProfile = Profile.GetProfile("SomeOtherUserName");
>> otherProfile.Data = newValue;
>> otherProfile.Save();
>>
>> -Brock
>> http://staff.develop.com/ballen
>>
>>
>>> 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.
>>>

>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Retrieving Profile Data milop ASP .Net 0 08-28-2008 12:05 PM
Visual Studio 2008 asp.net web administration>profile: "The profile wasn't created"? Andy B ASP .Net 0 05-03-2008 05:15 PM
Want to profile monitor for Fuji Frontier ICC profile? Lynn Digital Photography 9 09-08-2005 12:17 PM
Java Web Start app icons keep going in user profile not All Users profile Brad Java 1 07-19-2005 02:10 AM
Retrieving index for a particular row from dataset =?Utf-8?B?RGlmZmlkZW50?= ASP .Net 1 03-30-2005 11:20 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57