Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • skiltz 501 posts 701 karma points
    Mar 16, 2010 @ 22:32
    skiltz
    0

    Best Way to Save Member Properties

    ((

    MemberProfile)HttpContext.Current.Profile).FirstName = "Matthew"

    After this I have something like so....what is the best way to update the umbraco cache to reflect the changes? 

    MembershipUser

     

    m_Member = Membership.GetUser(HttpContext.Current.User.Identity.Name);

     

    Membership.UpdateUser(m_Member);

    I have to click the button twice for the changes to be reflected client side.  Refreshing the page after the first click and I still don't see the changes.

  • skiltz 501 posts 701 karma points
    Mar 16, 2010 @ 22:45
    skiltz
    0

    On my Profilebase class in the setter if I do base.Save(); then it works fine.

Please Sign in or register to post replies

Write your reply to:

Draft