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'm just starting to learn PHP and I'm trying to send my table via email. I am receiving the email but the body just says Array. I dont know where ...
I am trying to retrieved data from database and update a single column.
column1 | column2 | column3 value1 | value1 | ------- value2 | value2 | ------- <=== this ...
I'm not extremely great at coding, but I'd like to have players in my basketball program be able to copy and paste some code (on their phones) from a textarea. ...