>Thanks Bonnie. I think things are working out better for me now with state, but I'm still having a problem when I wireup events to dynamically-added users controls. They don't seem to ever fire until the page is posted back a second time. Is that also a problem you're familiar with?
Hi Brian, User control load events fire after the page load_event. The events fire like this: (I'm pretty sure)
User control page_init
Page_Init
Page_Load
UserControl_Load
If posting back, the event that fired the postback is executed.
Page_PreRender
UserControl_PreRender
If you have to execute code that needs your user controls loaded, consider the PreRender event.
hth,
~dab
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement