Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Controls collection
Message
 
 
À
16/03/2009 11:00:08
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
Divers
Thread ID:
01388377
Message ID:
01388400
Vues:
34
>>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

Bloody caching! <g> The guy who presented the ASP portion of my .NET class was terrific and put a lot of emphasis on performance issues. He covered the various caching options pretty thoroughly (at least I thought so, speaking from a fool's paradise) and it still made my brain bleed. If I start doing serious ASP.NET work I know I will need to revisit the whole performance aspect. For now I am deprecating it (one of his favorite words) because it's like drinking water from a fire hose when you're a beginner.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform