User Profile Update Problem

Last post 01-22-2008 3:08 AM by XiaoYong Dai – MSFT. 2 replies.

Sort Posts:

  • User Profile Update Problem

    01-18-2008, 6:37 AM
    • Member
      point Member
    • alex350r
    • Member since 01-13-2008, 8:32 PM
    • Posts 16

    Hi all,

    I currently store my users information using the asp.net profile system, i am creating a page where the users can update their profile details.

    Onload of the page it loads their profile data into the textboxes:

    firstName.text = Profile.FirstName

    etc etc.

    Onclick of the 'update' button, it sets the profile data to be the textbox data:

    profile.FirstName = firstName.text.

    However when the page reloads it comes back with the old name again, i think it is something to do with my onload event, how can i change this?

    Thanks,

    Alex 

  • Re: User Profile Update Problem

    01-18-2008, 10:48 AM
    • Member
      747 point Member
    • Coppermill
    • Member since 10-01-2004, 6:05 AM
    • Posts 185

    On the onload are you checking for the IsPostBack?

    Regards

    <<<Bryan Avery>>>


    Don't forget to click "Mark as Answer" on the post that helped you. That way future readers will know which post solved your issue.
  • Re: User Profile Update Problem

    01-22-2008, 3:08 AM
    Answer

    alex350r:

    Onclick of the 'update' button, it sets the profile data to be the textbox data:

    profile.FirstName = firstName.text.

    Hi

    Have you tried the following code to update profile?

       profile.FirstName = firstName.text.

       profile.Save();

    Best Regards
    XiaoYong Dai
    Microsoft Online Community Support

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Page 1 of 1 (3 items)