Modifying Profile of a specific user(not logged in user)

I noticed that the developers face problem when they want to update a profile of a user that is not currently logged in.

Actually there is many ways , this is the best way which works well for both web site and web applications .

      ProfileBase p=   ProfileBase.Create("UserName");
      p.SetPropertyValue("Address", NewAddress);
      p.Save();

Make sure to Import "System.Web.Profile".

No Comments