Placeholder Question

  • Thread starter Thread starter trinitypete
  • Start date Start date
T

trinitypete

Hi all,

I have a placeholder control on an ASPX page. I
dynamically add a button control to the placeholder from
code - all is well with the world. Both the place holder
and control have viewstate enabled, but on post back the
control disappears from the placeholder. Am I missing
something here or does the viewstate not persist the
placeholders control collection?

Thanks in advance pete.
 
Any control that is added to the page dynaically will have to be readded on
Page load. Page does not loose the view state but for the view state to work
it has to recreate its original state first.
 
Thanks for the info.

Regards, Pete.
-----Original Message-----
Any control that is added to the page dynaically will have to be readded on
Page load. Page does not loose the view state but for the view state to work
it has to recreate its original state first.

--
Naveen K Kohli
http://www.netomatix.com



.
 
Back
Top