I've done something like this. The site I was working on had an admin section that would populate an admin section only for those with proper privileges.
To get this to work I had to create a custom sql sitemap provider and drop the whole xml sitemap altogether.
Here a link on that.
http://weblogs.asp.net/scottgu/archive/200.../11/435108.aspxWhat I did then was move the sitemap content into a DB table. I would then based on the
users permissions/account type, I would only bring back the records for the sitemap that
the user is allowed to see.
Once I got the items for the needed menu I would create a tree of sitemapnode objects
that represent the the sitemap that will be displayed to the user. The root of the tree
would then be bound to the actual sitemap control
Hope that makes sense. If not I'll try to see if I can find the resources I used to do this.
For the most part I got this working correctly. I only had issue when trying to dynamically add/remove
items to the menu and refreshing it properly
Edit:
The article can actually be found here:
http://msdn.microsoft.com/en-us/magazine/cc163657.aspxThis post has been edited by skaoth: 8 May, 2008 - 02:43 PM