Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / February 2006

Tip: Looking for answers? Try searching our database.

Retrieving the profile for a particular username?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jéjé - 17 Feb 2006 16:41 GMT
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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.