473,394 Members | 1,935 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Retrieving the profile for a particular username?

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.
Feb 17 '06 #1
3 1491
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.

Feb 17 '06 #2
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" <ba****@NOSPAMdevelop.com> wrote in message
news:b8************************@msnews.microsoft.c 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.


Feb 17 '06 #3
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:Ol****************@tk2msftngp13.phx.gbl...
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" <ba****@NOSPAMdevelop.com> wrote in message
news:b8************************@msnews.microsoft.c 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.



Feb 17 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: kehmka | last post by:
Hello, I need to understand the full scope of changing the Profile.UserName property when a user goes from anonymous to authenticated. It's read-only and essential to acquiring profile...
1
by: Glenn T. Kitchen | last post by:
Dear Group, I'm having problems retrieving the child rows of a parent row. The parent table is Users and the child table is Addresses. I used the Schema to create a DataRelation between the...
0
by: Giorgio | last post by:
It seems that the ASP.NET Microsoft team didn't think about this!! The profilemanager class has the following methods: - DeleteInactiveProfiles. Enables you to delete all profiles older...
3
by: shapper | last post by:
Hello, In my Page's VB.NET code I am changing the value of the Profile property NAME. Profile.Name = tbName.Text However, I need to change this property value from a class in my App_Code...
4
by: Scott M. | last post by:
When profile data is stored in ASP .NET, where is the user data persisted? For how long is it persisted: is it session persisted or permanent (like a cookie)?
3
by: Oriane | last post by:
Hi there, I would like to open my Asp.Net project as a "Web Application" rather than as a "Web Site" in Visual Studio. But the thing is that I use the System.Web.Profile and the auto-generated...
1
by: shapper | last post by:
Hello, I am using a custom Profile provider as follows: public class Profile : ProfileBase { public Bio Bio { get; set; }
1
by: shapper | last post by:
Hello, On my CMS I am signed as administrator and I am creating a Membership user and its profile: MembershipCreateStatus status; MembershipUser user = Membership.CreateUser("Joe", "Pass",...
4
AaronL
by: AaronL | last post by:
Hello again, First I want to say thank you to all of you that have helped me in the past with all of my questions. I have gotten far in PHP and MySQL in the past two weeks. I designed a site...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.