I have a line of code that appears to not update the ViewState. I get the viewstate with:
Dictionary<string, OnBoardingItemData> loadedItems = ( Dictionary<string , OnBoardingItemData> ) ViewState [ "onBoardingItems" ];
When I set a boolean with the following code, the boolean takes for the life of this method, however when I acquire the ViewState again, the boolean is reverted to back to what it was.
if ( onBoardingItem.unlocked == true )
{
onBoardingItem.unlocked = false;
}
else
{
onBoardingItem.unlocked = true;
}
Go to the complete details ...