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!
I am not that much of an expert in PHP as it has been few months since I started playing with it. Currently I am working on creating a basic ...
I have a Table that displays titled and first name columns and delete link on the 3rd column.
Unfortunately for a reason i don't understand, records are not deleting when ...
Hello, I can't display images from database.
I have folder called "images" next to index.php where I keep images.
I suppose I have wrongly defined folder path with images or ...