View Full Version : Setting Profile Property Values

07-22-2012, 03:00 AM
Okay, so I'm trying to set some profile property values but for some reason it won't set the values. I don't get an error or anything but the values aren't set.

I've checked the currentUserName string and promoterName string it is not null it has their names so I'm really confused.

Here's the code:

protected void LinkButton1_Click(object sender, EventArgs e)
ProfileBase currentuser = Profile.GetProfile(currentUserName);
ProfileBase user = Profile.GetProfile(promoterName);
string following = currentuser.GetPropertyValue("Following").ToString();
string newFollowers = promotersFollowers + currentUserName + " ";
string newFollowing = following + promoterName + " ";
user.SetPropertyValue("Followers", newFollowers);
currentuser.SetPropertyValue("Following", newFollowing);
s.Visible = true;
s.InnerText = "You are now following " + promoterName + "!";