display hierarical site map using repeaters
I want to display a three levels site map as three levels of tabs. I use three repeater controls and three SiteMapDataSource controls 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(even the third repeater displays 2nd level tab). 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.
What's wrong with 3rd SiteMapDataSource settings?
Appreicate your help
|