Iterating through all the menu/child items in a menu control

B

Bryan

How do I iterate through all the items and all child items in a menu control
in asp.net 2.0?

Thanks, Bryan
 
S

Steven Cheng[MSFT]

Hi Bryan,

Welcome to the ASP.NET newsgroup.

As for the ASP.NET 2.0 Menu control, if you're manipulating it in page's
server-side code, you can access the Menu control's top level MenuItems
through its "Items" collection. Then, for each MenuItem, you can access the
child MenuItems t hrough its "ChildItems" collection.

Hope this helps.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,577
Members
45,054
Latest member
LucyCarper

Latest Threads

Top