TreeView Control and Custom SiteMapProvider

G

Guest

Hi,

I have written a custom SiteMapProvider to retrieve site map data from a SQL
Server database table. It works fine when used as the data source for a Menu
control, so I am confident that all the nodes are being correctly populated.
However, when used with a TreeView control, only the first node displays. Any
suggestions on why this might be the case?

Thanks.

Dan
 
S

Steve C. Orr [MVP, MCSD]

There are properties on both the Treeview and SiteMapProvider objects that
can alter how many levels are displayed from the Site Map. I suggest you
double check all the properties on both of those to make sure you haven't
accidentally misconfigured something.
 
G

Guest

Turns out that the answer was that I needed to declare <DataBindings> for the
TreeView.

--Dan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top