I'm attempting to implement the solution above and have a quick problem (I hope)
I put the following in place (modified slightly from above)
protected void NavigationMenu1_MenuItemDataBound(object sender, MenuEventArgs e)
{
SiteMapNode node = e.Item.DataItem as SiteMapNode;
if (!string.IsNullOrEmpty(node["hideFromMenu"]))
{
bool isHidden;
if (bool.TryParse(node["hideFromMenu"], out isHidden))
{
if (isHidden)
{
e.Item.Parent.ChildItems.Remove(e.Item);
}
}
}
}
I then added the following to my asp:menu control:
OnDataBound="NavigationMenu1_MenuItemDataBound"
And this is the error I get when it's called:
No overload for 'NavigationMenu1_MenuItemDataBound' matches delegate
'System.EventHandler'
This may be something simple, but since I'm still in the learning stages of .NET (classic ASP background) I'm not sure where to go from here.
Thanks!