Retrieving the profile for a particular username?

Discussion in 'ASP .Net' started by Jéjé, Feb 17, 2006.

  1. Jéjé

    Jéjé Guest

    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.
    Jéjé, Feb 17, 2006
    #1
    1. Advertising

  2. Jéjé

    Brock Allen Guest

    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.
    >
    Brock Allen, Feb 17, 2006
    #2
    1. Advertising

  3. Jéjé

    Jéjé Guest

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

    >
    >
    Jéjé, Feb 17, 2006
    #3
  4. Jéjé

    Jéjé Guest

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

    >>
    >>

    >
    >
    Jéjé, Feb 17, 2006
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?RGlmZmlkZW50?=

    Retrieving index for a particular row from dataset

    =?Utf-8?B?RGlmZmlkZW50?=, Mar 30, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    682
    Craig Deelsnyder
    Mar 31, 2005
  2. James Woody
    Replies:
    0
    Views:
    432
    James Woody
    Feb 6, 2006
  3. Brad
    Replies:
    1
    Views:
    1,125
    Roedy Green
    Jul 19, 2005
  4. Seb
    Replies:
    2
    Views:
    413
  5. Shailesh Patel
    Replies:
    0
    Views:
    438
    Shailesh Patel
    Nov 8, 2006
Loading...

Share This Page