我有用于页面访问的 web.sitemap,但我想对用户隐藏一些节点,这意味着只有管理员才能访问此页面。我想对用户隐藏报告。
web.config
<location path="~/Form/Report.aspx">
<system.web>
<authorization>
<allow roles ="admin" />
<deny users="?" />
</authorization>
</system.web>
</location>
web.sitemap
<siteMapNode url="Form\Report.aspx" title="Report" description="" roles ="admin">
</siteMapNode>