Placeholder Question

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.
 
N

Naveen K Kohli

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.
 
T

trinitypete

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



.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top