Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I filter nodes of TreeView and Menu controls with sitemap data sources based on user permissions?
    primarykey
    data
    text
    <p>I'm using the <a href="http://msdn.microsoft.com/en-us/library/ms178329.aspx" rel="nofollow noreferrer">ASP.NET Login Controls</a> and <a href="http://msdn.microsoft.com/en-us/library/aa480476.aspx" rel="nofollow noreferrer">Forms Authentication</a> for membership/credentials for an ASP.NET web application. And I'm using a <a href="http://msdn.microsoft.com/en-us/library/yy2ykkab.aspx" rel="nofollow noreferrer">site map</a> for site navigation.</p> <p>I have ASP.NET TreeView and Menu navigation controls populated using a SiteMapDataSource. But off-limits administrator-only pages are visible to non-administrator users.</p> <hr> <blockquote> <p><strong><a href="https://stackoverflow.com/users/1574/kevin-pang">Kevin Pang</a></strong> wrote:</p> <p>I'm not sure how this question is any different than your <a href="https://stackoverflow.com/questions/33263/how-do-i-best-handle-role-based-permissions-using-forms-authentication-on-my-as">other question</a>&hellip;</p> </blockquote> <p>The other question deals with assigning and maintaining permissions.</p> <p>This question just deals with presentation of navigation. Specifically TreeView and Menu controls with sitemap data sources.</p> <pre><code>&lt;asp:Menu ID="Menu1" runat="server" DataSourceID="SiteMapDataSource1" /&gt; &lt;asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" ShowStartingNode="False" /&gt; </code></pre> <hr> <blockquote> <p><strong><a href="https://stackoverflow.com/users/2808/nicholas">Nicholas</a></strong> wrote:</p> <p>add role="SomeRole" in the sitemap</p> </blockquote> <p>Does that only handle the display issue? Or are such page permissions enforced?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload