User Profiles

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?RWQ=?=

    User Profiles

    I have started creating an application where I make use of User Profiles,
    to allow users to enter information about themselves. I now find that
    I wish I could create an "Administra tor" account that will allow the
    administrator to change or edit profile data that a user has placed in their
    profile. Is it possible in ASP.NET 2.0 to do that? The application is
    already
    using an ASP.NET membership database.

    Thanks in advance...Ed


  • Michael Nemtsev [MVP]

    #2
    Re: User Profiles

    Hello Ed,

    U need to use the ProfileCommon.C reate method with user name to access his
    properties.

    ProfileCommon userProfile = (ProfileCommon) ProfileCommon.C reate(userName,
    true)

    and then u have access to user profiles via properties

    like userProfile.<pr operty>

    ---
    WBR,
    Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

    "The greatest danger for most of us is not that our aim is too high and we
    miss it, but that it is too low and we reach it" (c) Michelangelo


    EI have started creating an application where I make use of User
    EProfiles,
    Eto allow users to enter information about themselves. I now find
    Ethat
    EI wish I could create an "Administra tor" account that will allow the
    Eadministrator to change or edit profile data that a user has placed
    Ein their
    Eprofile. Is it possible in ASP.NET 2.0 to do that? The application
    Eis
    Ealready
    Eusing an ASP.NET membership database.
    EThanks in advance...Ed
    E>


    Comment

    • =?Utf-8?B?RWQ=?=

      #3
      Re: User Profiles

      Thanks Michael, that did the trick.


      --
      Ed


      "Michael Nemtsev [MVP]" wrote:
      Hello Ed,
      >
      U need to use the ProfileCommon.C reate method with user name to access his
      properties.
      >
      ProfileCommon userProfile = (ProfileCommon) ProfileCommon.C reate(userName,
      true)
      >
      and then u have access to user profiles via properties
      >
      like userProfile.<pr operty>
      >
      ---
      WBR,
      Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour
      >
      "The greatest danger for most of us is not that our aim is too high and we
      miss it, but that it is too low and we reach it" (c) Michelangelo
      >
      >
      EI have started creating an application where I make use of User
      EProfiles,
      Eto allow users to enter information about themselves. I now find
      Ethat
      EI wish I could create an "Administra tor" account that will allow the
      Eadministrator to change or edit profile data that a user has placed
      Ein their
      Eprofile. Is it possible in ASP.NET 2.0 to do that? The application
      Eis
      Ealready
      Eusing an ASP.NET membership database.
      EThanks in advance...Ed
      E>
      >
      >
      >

      Comment

      Working...