private bool[] clientCollapse
{
get { return (bool[])ViewState["Collapse"]; }
set { ViewState["Collapse"] = value; }
}
if it works, if you set these values ββonly using this property, otherwise you can, but there the other type and cast will not work
BTW general naming conventions for C # require property names to start with capital: ClientCollapse
source
share