Menu Control, SiteMap, Security Trimming and Roles




I've got my site configured to use a menu control, a site map, security
trimming, and roles. Everything seems to be working, except I have the
following problem.

If I define a hierarchical menu in my sitemap as follows:

<siteMap ...>
<siteMapNode url="" title="Main Menu" description="" roles="*">
<siteMapNode url="" title="Reference Tables" description=""
roles="Admins,Power Users,Users">
<siteMapNode url="~/Admin/MaintainTable1.aspx" title="Table 1"
description="" roles="Admins, Power Users" />
<siteMapNode url="~/Admin/MaintainTable2.aspx" title="Table 2"
description="" roles="Users" />

.... removed


All the items in the Reference Tables menu item are displayed,
regardless of the logged in user's role. I would expect the first menu
item to be displayed when an Admin or a Power User logs in, and the
second menu item to be displayed when a User logs in. Am I wrong?

Obviously, this is a simplified version of my site map. I can't
separate the site map nodes out and use the same url with different
node lists. I get an exception when I do this.

What am I doing wrong?

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Latest member

Latest Threads