bitmask wrote: |
Hello aarnott,
One approach I can think of is to take the nodes out of the web.sitemap file,
and add them dynamically when the user arrives at the page using the SiteMap.SiteMapResolve
event. |
|
That sounds like it might work. Too bad it's so hard-coded.
It would be nice if I could just set an attribute on the siteMapNode in
the sitemap file.
Dave Sussman wrote: |
e.Item.Parent.ChildItems.Remove(e.Item) |
|
That unfortunately will not work for me, since my Menu control only
displays children nodes, and therefore every node has no e.Item.Parent,
apparently. I get a NullReferenceException.
Thanks for your ideas, both of you. I'm sure Dave's idea works for the majority of the cases. I've just got a weird case.
Andrew L Arnott
.NET Compact Framework