Sharepoint, viewstate,user control

O

ogonicle

Hello everybody,

Do you know how sharepoint handle viewstate ?

because when i load an user control into my webpart, It seems that it's not
possible to add events on the controls, because they are not persistant!

Do you know how i can tell to sharepoint that those controls has to be
persistant ?

I'm using this to load the control
Public mobjCtl As UserControl
dim ControlVPath as string
mobjCtl = Page.LoadControl(ControlVPath)
Me.Controls.Add(mobjCtl )



I also tried with dbauer place holder, but it seems that they are not keep
in the viewstate!!



Thank you for your help



Yoni
 

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