Author: Xorcist | Posted on: 6/30/2008 6:28:44 AM | Views : 287

Okay, so I have a web.sitemap setup, and I have my AspNetNavigationProvidor setup with securityTrimmingEnabled="true". Now everything works security-wise fine in terms of how I have the pages setup (in subdirectories w/ web.configs), and the proper menus are generated for each associated role (so long as the page is accessable or not to them), but I'm trying to do the following. I want to allow access to several pages, for several roles, but I only want those pages to show on my menu (which is being generated via the web.sitemap) for a subset of those roles. Now I attempted to set the roles property of my siteMapNodes but it doesn't seem to do anything. Here is a quick example:

 

File location ~/MyApp/web.sitemap<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode Go to the complete details ...