Q: dynamically created databound controls persist but static controls

Q: dynamically created databound controls persist but static controls

am 04.04.2008 01:49:15 von mad.scientist.jr

I am running into a case where I am databinding a control
(dropdown, checkboxlist, etc) to a datatable,
caching the datatable in session,
and on postback rebind the control.
After postback the control loses its value.
However if I try this with a dynamically created control,
it maintains state just fine.
(I would think it would be the other way around.)

You can cut/paste my aspx and codebehind into your project from here:
http://www.geocities.com/usenet_daughter/databind_persist_is sue.htm

How would you get the static control (CheckBoxList1)
to maintain state after postback?
I am curious why this is happening.

Thanks