Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cannot remove a control
Message
De
14/05/2008 00:12:45
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Cannot remove a control
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01316884
Message ID:
01316884
Vues:
56
In a particular situation, I need to remove a control from a page. I have this code:
loControl = oProcess.oPage.FindControl("Form1")
oProcess.oPage.Controls.Remove(loControl)
where oProcess.oPage is a reference to the page.

I have put some insertion line to really show that loControl is really a reference to Form1. But, after the Remove() line, the control still exists.

What am I missing?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform