Hello,
I am using the PersonalizedData for the first time to expand on the properties for a user which they can access through the personal settings template. I added some text fields as well as some check boxes. I am experiencing the following two problems.
When I put a value in the text box or check the check property, the value is recorded. However, the value is not errased even after I delete the entry on the text box or uncheck the checkbox. Any clues why?
Code:
if (PersonalizedData.Current != null)
{
// Print current value
if (PersonalizedData.Current["City", CurrentPage.PageLink] != null)
City.Text = (string)PersonalizedData.Current["City", CurrentPage.PageLink];
//Set new value
PersonalizedData.Current["City", CurrentPage.PageLink] = City.Text;
// Print current value
if (PersonalizedData.Current["InfoRequestRussian", CurrentPage.PageLink] != null)
Russian.Checked = (bool)PersonalizedData.Current["InfoRequestRussian", CurrentPage.PageLink];
//Set new value
PersonalizedData.Current["InfoRequestRussian", CurrentPage.PageLink] = Russian.Checked;
}
if (PersonalizedData.Current != null) { // Print current value if (PersonalizedData.Current["City", CurrentPage.PageLink] != null) City.Text = (string)PersonalizedData.Current["City", CurrentPage.PageLink]; //Set new value PersonalizedData.Current["City", CurrentPage.PageLink] = City.Text; // Print current value if (PersonalizedData.Current["InfoRequestRussian", CurrentPage.PageLink] != null) Russian.Checked = (bool)PersonalizedData.Current["InfoRequestRussian", CurrentPage.PageLink]; //Set new value PersonalizedData.Current["InfoRequestRussian", CurrentPage.PageLink] = Russian.Checked; }