how to hide menu item with child menus

Hi,

In menu contraller we can hide child menus by seting there text property to empty. if that child menu has his child menus even if we set all text properties to empty it shows a empty arrorw on the menu.

if any one know please tell me how to over come this. i mean i want to hide menu items with child items , in programaticaly.

Thanks and regards

Jenifer



Answer this question

how to hide menu item with child menus

  • Bill T.

    Dear Jenifer!

    Thanks for participating on the MSDN Forum, but this forum section is reserved for C# General questions. For ASP.NET question you can post your question on the asp.net forum, there you find asp.net experts and you question should be answered in no time
    The people there will have enough experience with the Menu control class to give you the best advice or answer!

    Please post the question on: http://forums.asp.net/.


  • RonanD

    Hello Jennifer. I'm not sure what classes/objects you're using however most MenuItem's and ToolStripMenuItems should have a .Visible property. You can set this property to false to hide and set it to true to show it. So instead of setting the caption to empty, leave the caption allow and set the Visible property to false on the MenuItem.

    Hope this helps.


  • newSB

    im using

    System.Web.UI.WebControl.Menu for my project. its child object doesnt have visible property. this is the problem.


  • how to hide menu item with child menus