Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
310
Web Explorer Bar Databinding with Security Trimming.
posted

Hi,

I have web explorer bar in a user control and it has a data source of the Web.Sitemap file.

The web explorer bar works absolutely fine, but I am having problems displaying / hiding menus based on the user roles.

For e.g.: I have a menu item called "Users" and if that menu item does not have any rule in Web.Sitemap then it would appear in the web explorer bar, but as soon as I add some rule to it, the menu disappears. Please look at the code below.

<siteMapNode title="Users" rule="ShowAppAdminUI">
            <siteMapNode title="Manage User Roles" description="Manage User Roles" url="~/User/ListUsers.aspx" rule="ShowAppAdminUI" />
</siteMapNode>

I have made sure that I belong to the roles that are defined in the rule "ShowAppAdminUI".

Can someone please help?

Thanks.