I think I'm missing something obvious about sitemaps.
I'm trying to use a repeater to generate some navigation for a new sitemap we have on our site. But I don't want to use our normal Web.sitemap file, I want to use our new one...we'll call it "Web.NEW.sitemap".
The code seems somewhat obvious to a point...
<asp:Repeater ID="rptMyRepeater" DataSourceID="mySitemap" runat="server">
<ItemTemplate>
blah blah blah
</ItemTemplate>
</asp:Repeater>
<asp:SiteMapDataSource ID="mySitemap" runat="server" />
But how do I get SiteMapDataSource to use Web.NEW.sitemap instead of the default sitemap? I thought adding an attribute like:
SiteMapProvider="Web.NEW.sitemap"
ought to do it, but no dice.
What am I missing?
DataBind()
my SiteMap and then my Menu (which I was using the SiteMap for):_siteMap.SiteMapProvider = "newProvider";
_siteMap.DataBind();
_menu.DataBind();
Do you need to do this? Does this work for you? – Kylynn