Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Controls collection
Message
From
16/03/2009 11:00:08
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
 
 
To
16/03/2009 10:54:08
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
Miscellaneous
Thread ID:
01388377
Message ID:
01388388
Views:
32
>Ok.. seems I understand what happens..
>When I click on the button - all my controls which I add programmatically gone... Only controls which I put in design mode still there.
>Have I any chance to access to those controls in ASP server side.. or I have only a chance use JavaScript code...
>
>About hold controls... I do next
>Dim loPanel as Panel = new Panel
>Dim loTextbox As WebControls.TextBox = New WebControls.TextBox
>Me.Controls.add(loPanel)
>loPanel.Controls.add(loTextbox)
>
>Me - is a UserControl

Alright, I ran into the same snag also. It's not an easy fix (at least it wasn't for me). Let me see if I can find the blog entry that explained it....

Found it: http://www.yakkowarner.com/2008/01/aspnet-dynamic-controls-and-viewstate.html
Very fitting: http://xkcd.com/386/
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform