Dynamic Controls in Multiple Assemblies

S

Scott Nichols

Hi,

I just can't quite figure this out although I see it posted all over
the newsgroup....

I am dynamically adding a panel to a web form. The dynamic panel
contains webcontrols. I want the dynamic panel conataining the
webcontrols to persist in the page's viewstate.

I have overridden the loadviewstate and saveviewstate methods, but the
problem seems to be that the dynamic panel itself does not have a
viewstate. Do I need to manually create the view state for the dynamic
panel?

I'm I explaining this problem well enouogh for someone to give me some
pointers?

Thanks,

Scott
 
I

intrader

Scott said:
Hi,

I just can't quite figure this out although I see it posted all over
the newsgroup....

I am dynamically adding a panel to a web form. The dynamic panel
contains webcontrols. I want the dynamic panel conataining the
webcontrols to persist in the page's viewstate.

I have overridden the loadviewstate and saveviewstate methods, but the
problem seems to be that the dynamic panel itself does not have a
viewstate. Do I need to manually create the view state for the dynamic
panel?

I'm I explaining this problem well enouogh for someone to give me some
pointers?

Thanks,

Scott
Please, do me a favor, can you let me know when you get a response to this?.
I suspect that you need to implement the ViewState for the Panel (it does
not do so on its own - it is a Windows.Forms thing).
 

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

Staff online

Members online

Forum statistics

Threads
473,769
Messages
2,569,577
Members
45,052
Latest member
LucyCarper

Latest Threads

Top