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

Discussion in 'ASP .Net' started by Bryan, Mar 1, 2006.

  1. Bryan

    Bryan Guest

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

    Thanks, Bryan
     
    Bryan, Mar 1, 2006
    #1
    1. Advertising

  2. 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.)
     
    Steven Cheng[MSFT], Mar 1, 2006
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ron
    Replies:
    0
    Views:
    447
  2. Mark Fox

    Iterating through Repeater.Items

    Mark Fox, Nov 14, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    8,186
    Mark Fox
    Nov 14, 2003
  3. Jeff Rodriguez
    Replies:
    23
    Views:
    1,134
    David Schwartz
    Dec 9, 2003
  4. Larry Bud
    Replies:
    13
    Views:
    7,705
    Larry Bud
    Jan 7, 2008
  5. Anjan Bhowmik
    Replies:
    1
    Views:
    478
    Misbah Arefin
    Feb 14, 2008
Loading...

Share This Page