[Personalizable(PersonalizationScope.Shared)]
[WebPartStorage(Storage.Shared)]
public List<searchResult> lsQtys
{
get
{
List<searchResult> lsQuantities = (List<searchResult>)ViewState["lsQuantities"];
return lsQuantities;
}
set
{
ViewState["lsQuantities"] = value;
}
}
I build up this list of varaibles when the webpart is first rendered and using the immediate window i can see that the viewstate is storing the variables. However on the button press the information stored in the viewstate is then null? is there any reason why this information would be lost/unavailable on postback?