Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to ForEach Page controls?
Message
 
 
À
13/11/2006 16:16:24
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
ASP.NET
Divers
Thread ID:
01169266
Message ID:
01169312
Vues:
8
>
>In each loControl object, you can detect the type. Then, from the type, you will know what property is available or not.

When I scan controls in the page as in the following:
foreach (Control MyControl in Page.Controls)
  {
    // Can't find a property Type of MyControl or don't
    // know how to determine the type of this control
  }
The comment above pretty much shows that I can't find how to detect the type. I know you work in VB.NET but maybe you see something in my approach that will give a clue.

Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform