swade61970
Programmer
I'm using sitemap but are not getting the results I expected. I have three groups defined.
admin
programmers
citymanager
One of the nodes in my menu has three options. I want the options to be available only for certain groups. However all of the groups can see all of the three menu options. Below is part of my web.sitemap.
web.sitemap
<siteMapNode title="Admin" roles="admin,citymanager,programmers" description="Admin">
<siteMapNode url="~/RoleAdmin/Review.aspx" title="Review Budget"
roles="admin,citymanager" description="Review Budget">
</siteMapNode>
<siteMapNode url="~/RoleAdmin/Admin.aspx" title="Miscelleanous"
roles="admin,programmers" description="Miscelleanous">
</siteMapNode>
<siteMapNode url="~/RoleAdmin/CompareReport.aspx" title="Compare Report"
roles="admin" description="Compare Report">
</siteMapNode>
</siteMapNode>
web.config
<location path="RoleAdmin">
<system.web>
<authorization>
<allow roles="admin" />
<allow roles="programmers" />
<allow roles="citymanager" />
<deny users="*" />
</authorization>
</system.web>
</location>
admin
programmers
citymanager
One of the nodes in my menu has three options. I want the options to be available only for certain groups. However all of the groups can see all of the three menu options. Below is part of my web.sitemap.
web.sitemap
<siteMapNode title="Admin" roles="admin,citymanager,programmers" description="Admin">
<siteMapNode url="~/RoleAdmin/Review.aspx" title="Review Budget"
roles="admin,citymanager" description="Review Budget">
</siteMapNode>
<siteMapNode url="~/RoleAdmin/Admin.aspx" title="Miscelleanous"
roles="admin,programmers" description="Miscelleanous">
</siteMapNode>
<siteMapNode url="~/RoleAdmin/CompareReport.aspx" title="Compare Report"
roles="admin" description="Compare Report">
</siteMapNode>
</siteMapNode>
web.config
<location path="RoleAdmin">
<system.web>
<authorization>
<allow roles="admin" />
<allow roles="programmers" />
<allow roles="citymanager" />
<deny users="*" />
</authorization>
</system.web>
</location>