Re: web.sitemap question

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Just figured it out. Here's the solution:

<siteMap>
<siteMapNode>
<siteMapNode title="Home" />
<siteMapNode title="Support" />
<siteMapNode title="Contact Us" />
</siteMapNode>
</siteMap>

The "top level" items are actually sub items. By default doing this
doesn't work because the root siteMapNode doesn't have any value.

I had to add ShowStartingNode="False" here:

<asp:SiteMapDataSource ID="SiteMapDataSource1"
ShowStartingNode="False" runat="server" />

That fixed the problem. :)

John

.



Relevant Pages

  • Setting BackColor of sub items in a list view.
    ... I have a listview in the Details mode. ... sub items. ... Sinex ... Prev by Date: ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: dynamic menu problem
    ... Your build sub-menu code needs to do something ... // now add sub items to subMnu, ... Prev by Date: ...
    (alt.comp.lang.borland-delphi)
  • Re: Menu control
    ... > What I want is that it directly and always shows all sub items under each ... It'd probably be easiest to just write your own control that creates a ... nested UL for your menu which you can then style via CSS. ... Prev by Date: ...
    (microsoft.public.dotnet.framework.aspnet)
  • ListView Problem
    ... It seems that when I sort the ListView control the Items are losing their ... Any explanation? ... Prev by Date: ...
    (microsoft.public.dotnet.languages.vb)