473,386 Members | 1,706 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

TreeView Control and Custom SiteMapProvider

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
May 11 '06 #1
2 1907
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.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"dhurwitz" <dh******@discussions.microsoft.com> wrote in message
news:58**********************************@microsof t.com...
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

May 11 '06 #2
Turns out that the answer was that I needed to declare <DataBindings> for the
TreeView.

--Dan

"Steve C. Orr [MVP, MCSD]" wrote:
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.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"dhurwitz" <dh******@discussions.microsoft.com> wrote in message
news:58**********************************@microsof t.com...
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


May 16 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Mark Parter | last post by:
I have a master page which contains a Menu control and a SiteMapPath control, both are bound to the same web.sitemap XML file. Say I have 2 pages, Page 1 and Page 2. Now Page 2 can only be accessed...
0
by: MarkD | last post by:
I have an ASP.NET (VB.NET) application that calls all VB6 COM DLL via Interop. The DLL uses functionality contained in a Custom OCX Control (Also VB6) that in turn contains a standard TreeView...
2
by: kevin | last post by:
I would like to remember the state of the nodes after the treeview gets disposed, but not necessarily after the app terminates so I don't need a disk file. I was thinking about using the tag...
6
by: Alan Silver | last post by:
Hello, I want to show a treeview display of the contents of a sitemap file on another web site, chosen according to the currently logged on user. I know at run time the path to the sitemap file,...
0
by: shapper | last post by:
Hello, I need to create a custom SiteMapProvider. I searched in Google for examples but I am still completly lost. The custom SiteMapProvider I need to create is exactly the same as the...
0
by: apenly | last post by:
Hi all- I'm trying to Render a TreeView in a custom control, but I'm receiving a NullReferenceException at runtime. If I put the TreeView on the page it works fine, but as soon as I try to...
0
by: noneya22 | last post by:
I want to use a TreeView control as a one-level, vertical navigation menu. I'm using this control currently with a SiteMapDataSource and .sitemap file. I've written code that associates an image...
3
by: Anders | last post by:
Hello, i have created a custom sitemap datasource. The sitemap gets all pages from a collection from a CMS system (not directly from a database). I have declared my sitemap provider as default in...
18
by: =?Utf-8?B?TGkgV2VuZw==?= | last post by:
Hi, Is there a way for TreeView to have multiple selections? But I am not talking about its checked boxes. I want a way similar to ListView with MultiSelect = True. So I can use or key and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.