Issues with WebControls.Menu in ASP.Net 2.0

Posted on 2006-06-07
Last Modified: 2010-05-18
Hi experts,

I'm using System.Web.UI.WebControls.Menu control in ASP.Net 2.0. The control has a property called "BackColor" which allows me to set the background color of the main nodes. Yet, it doesn't seem to have any property that lets me set the color of pop-up child nodes. Do you have any idea how to do that?

Thank you.
Question by:yokkui
    LVL 9

    Expert Comment


    Take a look at LevelMenuItemStyles property:

    LVL 3

    Author Comment

    Thank you, but that's a class not a property. Could you please be more specific?
    LVL 9

    Accepted Solution

    The LevelMenuItemStyles and LevelSelectedStyles properties are an alternative to the individual style properties (such as StaticMenuItemStyle). These properties are applied to regular menu items and the selected menu item, respectively, based on the menu item's level in the menu.

    You can set a style to each level of your menu control.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
    In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now