Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I reference the menu item I added at run-time?
Message
 
À
26/01/2005 21:50:40
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Menus
Divers
Thread ID:
00980910
Message ID:
00981084
Vues:
65
>Einar-
>
>>Thanks for your input. I will have to look into that.
>
>Doh. I'm such a dope sometimes. Why not just subclass MenuItems and add a method called, say,
GetIndexOf("Einar's Adapter".
Would that work? Yes, you have iterate through the menu, but it should be blazingly fast.

Nancy,
I already have the code to iterate through the menu "branch" so I guess creating a MenuItem subclass wouldn't bee all that much work. Hmm and I guess it would be a good thing because I am sure I will have similar code in multiple applications.
Thanks for your input.

Sincerely,
Einar
Semper ubi sub ubi.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform