That's part of the problem with dynamic controls. They are truly dynamic. Unless you create them every time, they dissappear. There's no way around this aside from ensuring they are created every time.
When asp.net parses the aspx and ascx files, it instantiates all the controls it finds. So similarly, you would need to manually instantiate controls that are dynamic. Viewstate should be able to maintain their states and values and such (unless you reset those as well) but you need to make sure the control is there.
Peter
------------------------------------------------------
Work smarter, not harder.
|