I have a Sitemap and I am planning to query it programmatically and filter it, something like
from SiteMapNode smnode in SiteMap.RootNode.GetAllNodes()
..do something
My question is how do I approach the above. I mean on what event can I query it and how to then bin开发者_如何学JAVAd it to the TreeView?
You should use SiteMapDataSource:
http://msdn.microsoft.com/en-us/library/ms227441.aspx
and bind to that datasrouce
精彩评论