Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Menu Items
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Divers
Thread ID:
00945353
Message ID:
00945365
Vues:
21
This message has been marked as the solution to the initial question of the thread.
Hi, Shawn,

Here's a code sample. This assumes your main menu is called "mainMenu1". It will loop through the menu pad pulldowns from left to right, and display the name of each pad along with the name of all the menu items for each pad.
foreach(MenuItem oMenuPad in  this.mainMenu1.MenuItems) 
{
	MessageBox.Show("Menu Pad is " + oMenuPad.Text);
	foreach(MenuItem oMenuItem in oMenuPad.MenuItems)
		   MessageBox.Show("Menu Item for this pad is " + oMenuItem.Text);
}
Hope that helps...
Kevin
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform