wlin
Aug 23 2006 8:42 AM
|
I want to display a three levels site map as three levels of tabs. I use three repeater controls and three SiteMapDataSource controls as described in the article as follows:
<asp:Repeater ID="Repeater1" runat="server" DataSourceID="srcBuckets">
<asp:Repeater ID="Repeater2" runat="server" DataSourceID="srcPails">
<asp:Repeater ID="Repeater1" runat="server" DataSourceID="srcContents">
<asp:SiteMapDataSource ID="srcBuckets" runat="server" ShowStartingNode="False"/>
<asp:SiteMapDataSource ID="srcPails" runat="server" ShowStartingNode="False" StartingNodeOffset="1" />
<asp:SiteMapDataSource ID="srcContents" runat="server" ShowStartingNode="False" StartingNodeOffset="2" />
After running, it displays the 1st level of tabs correctly. But when I click on one tab, it displays the 2nd level of tabs twice. I don't understand why, because StartingNodeOffset="2" for 3rd repeater control.
Only after clicking on one tab of the 2nd level of tabs, the 3rd level of tabs is displayed correctly.
Appreciate your help. |