Hello everyone, Jon here again with a quick tip. If you have ever wanted to use the new navigation features of ASP.Net 2.0 in your site, you might have noticed that it doesn’t work in the way described by the tutorial when you are on a SharePoint v3 based site. The key is that you need to specify the SiteMapProvider that you want, because SharePoint sets the default sitemap provider to be SPSiteMapProvider. If you want the standard non-SharePoint behavior, you should specify SiteMapProvider=”AspNetXmlSiteMapProvider” on your asp:SiteMapDataSource.
<asp:TreeView runat=”server” id=”MyTreeView” DataSourceID=”MySiteMap”/>
<asp:SiteMapDataSource runat=”server” ID=”MySiteMap” SiteMapProvider=”AspNetXmlSiteMapProvider”/>