Posted on: 3/14/2011 9:45:20 PM | Views : 304

Hi,
I'm trying to make a SQL Site Map Provider. When I run the page it doesn't give me any errors but doesn't show the menu. So I'm pretty stucked....
Insted of adding the provider in the ascx file I tried to add in the codebehind file, so I could debug through the code at is seems fine. When I debug through ssmp.BuildSiteMap() I get 36 nodes (wich is correct). But when trying to DataBind() I get the following error:
HierarchicalDataBoundControl only accepts data sources that implement IHierarchicalDataSource or IHierarchicalEnumerable.
I have tried to google it but cann't find something I can understand.
If I try to add the Provider in the ascx file instead I don't get any error, but as written the menu doesn't appear either..
Another thing; I need to add a parameter more into the Provider class from the Web.config file when I call the Provider.
For this I used:
<add name="AspNetSqlSite ...

Go to the complete details ...