Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Access to controls in placeholder
Message
De
09/09/2009 16:20:48
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Access to controls in placeholder
Versions des environnements
Environment:
ASP.NET
OS:
Windows XP SP2
Divers
Thread ID:
01423345
Message ID:
01423345
Vues:
104
Hi All,

I have a page with a placeholder on it and am adding controls dynamically and with ajax postbacks. There is also a button on the page so when the user is finished and clicks this button I need to retrieve values from the controls added in the placeholder. The problem is when the button click fires, the placeholder.controls.Count is 0 when I know there were just two controls on the page.

Now if I add the controls in the Page Load event they would be available to me in the exact same method. It appears to be because they are dynamically loaded (via ajax) later in the cycle. What can I do to have access to controls dynamically placed?
Thanks for any help.
Tim
Timothy Bryan
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform