Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Enumerate controls
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00705640
Message ID:
00707482
Vues:
28
Try this...
if(MyFunctions.At("dropdownlist",loControl.GetType().ToString().ToLower()) > 0)
{
//It's a dropdown...
}
MyFunctions.At works just like Foxpro's At().

>how do I enumerate controls on a webform?
>
>'' What doesn't work;
>dim ctl as control
>for each ctl in ?webform?
>    if (type of ctl is textbox) then
>        'do something with textboxes
>    end if
>    if (type of ctl is blah) then
>        'do something with blah etc
>    end if
>next
>
>
>Thanks in advance,
- Jayesh
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform