Simon,
Use the OnMenuItemDataBound event and you can check which node you're on by
looking at the menu item's text.
Protected Sub Menu1_MenuItemDataBound(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.MenuEventArgs) Handles Menu1.MenuItemDataBound
Try
If e.Item.Text = "Page2" Then
'---Don't show page2
e.Item.Text = ""
End If
Catch ex As Exception
ProcessException("There was an error during menu creation:", ex)
End Try
End Sub
--
S. Justin Gengo
Web Developer / Programmer
Free code library:
http://www.aboutfortunate.com
"Out of chaos comes order."
Nietzsche
"Shimon Sim" <sh**********@community.nospam> wrote in message
news:uD**************@TK2MSFTNGP10.phx.gbl...
I have web.sitemap file that is used in sitemappath control. I also have a
menu that uses the same sitemap file. is it possible to "hide" some nodes
from menu but still have them available for SiteMapPath control.
I need it since some pages could be displayed only if the have some
parameters passed to them via url.
Thank you,
Shimon.