im using menu item as my navigation. and im using this to remove my menu.
Private Sub RemoveItemByValue(ByVal Value As String) For i As Integer = 0 To Menu1.Items.Count - 1 If Menu1.Items(i).Value = Value Then Menu1.Items.Remove(Menu1.Items(i)) End If Next End Sub
but i can only remove the top menu. but i want to remove the sub sub menu item.
Try to use Menu.FindItem method to search a menu item.
Assume that a menu has the following structure
Here Music has two sub menu items.
To remove the 'Classical' sub menu item from 'Music', use the following code
String valuePath1 = "Home/Music"; MenuItem musicMenuItem = Menu1.FindItem(valuePath1); String valuePath2 = "Home/Music/Classical"; MenuItem item = Menu1.FindItem(valuePath2); musicMenuItem.ChildItems.Remove(item);
Edited by Ramesh S: n/a
it works! thanks a lot!
Cek this site: www.advance-web-studio.com
There is a white space underneath it that I do not know where it comes from.
this is my index.php
<b>Latest Projects:</b><br><br> <div> <a href="<?php ...
I am currently working on a program to track my mile for my monthly expense report for work. Everything is working great, however, I can not for the life of ...
I am trying to make this form to clear after being submited. As it is now the form submits, however, the input fields do not clear and when ...