For some reason on my page my SiteMapPath disappears.
Site structure:
WebApp
-Default.aspx
-> Reports\
----Default.aspx
----MyReport.aspx
Web.sitemap
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="~/Default.aspx" title="Overview" description="Overview">
<siteMapNode url="~/Reports/Default.aspx" title="Reports" description="Reports" >
<siteMapNode url="~/Reports/MyReport.aspx" title="MyReport" description="MyReport" />
</siteMapNode>
</siteMapNode>
</siteMap>
The SiteMapPath will display when I'm on the overview page of the reports page but not the MyReport page. With the sitemap bound to a treeview I see all of my nodes correctly.
Works - shows me on MyReport Page
<asp:TreeView ID="TreeView1" runat="Server" DataSourceID="SitePathDataSource">
</asp:TreeView>
Disappears on MyReport Page but visible on all others
<asp:SiteMapPath ID="SiteMapPath1" runat="server" DataSourceID="SitePathDataSource">
</asp:SiteMapPath>