Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dynamically Adding User Controls
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00863033
Message ID:
00863925
Vues:
7
>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
Fil
Voir

Click here to load this message in the networking platform