R
rmgalante
Hi,
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" />
</siteMapNode>
</siteMapNode>
.... removed
</siteMap>
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?
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" />
</siteMapNode>
</siteMapNode>
.... removed
</siteMap>
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?