protected override void OnInit(EventArgs e) { Page.RegisterRequiresControlState(this); base.OnInit(e); } protected override object SaveControlState() { object[] state = new object[2]; // save the 2 properties state[0] = Text; state[1] = Text1; return state; } protected override void LoadControlState(object savedState) { object[] state = (object[])savedState; Text = (string)state[0]; Text1 = (string)state[1]; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)