I got a web.sitemap bound to a treeview control, inside the sitemap I've setup an attribute called "removefromsitemap".
On the nodedatabound event, i grab the sitemapnode and see what the value of the above attribute is, and then depending on that I decide whether to remove the node.
I use the following line, ctrTreeView.Nodes.Remove(e.node), if placed inside the If statement, it executes the line and the node isn't removed, place it outside the statemenet and the whole treeview disappears as expected.
Why is this happening, I just want to be able to remove nodes based on the sitemap attribute.
Thanks
Chriss
Where there's a will, I wanna be in it.