Forum Moderators: open
protected void Menu1_MenuItemDataBound(object sender, MenuEventArgs e)
{
// Check the MenuItem Title
if (e.Item.Text == "my title")
{
// Needs to be removed, check if it is a SubItem
if (e.Item.Parent != null)
{
// Remove from ParentNode
e.Item.Parent.ChildItems.Remove(e.Item);
}
else
{
// Remove from the Root of the Menu
Menu1.Items.Remove(e.Item);
}
}
}