SiteMap Issues

asp.net Samoa
  • 14 years ago

    observed that siteMapNodes without a URL are not rendered on the screen anymore after the securityTrimmingEnabled attribute is set to true. Does anyone know how to create menu items that are not tied to a URL, while the securityTrimmingEnabled attribute is set to True?

  • 14 years ago

    Remove the URL, then add the property roles="*" to the SiteMapNode.  Trickle it down to the underlying nodes if you want them shown...

    <

    siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >

    <

    siteMapNode url="~/Default.aspx" title="Home" description="Home">

    <

    siteMapNode title="Candidates" description="Candidates" roles="*">

    <

    siteMapNode url="~/Candidate/Default2.aspx" title="Edit Profile" description="Edit Profile" />

    <

    siteMapNode url="~/Candidate/profile.aspx" title="Profile" description="Profile" />

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“It works on my machine.” - Anonymous