Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Access to controls in placeholder
Message
From
09/09/2009 16:20:48
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Access to controls in placeholder
Environment versions
Environment:
ASP.NET
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01423345
Message ID:
01423345
Views:
105
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
Next
Reply
Map
View

Click here to load this message in the networking platform