473,320 Members | 2,124 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,320 software developers and data experts.

SiteMapProvider Question

Hi,

I have implemented a working SiteMapProvider as shown on an msdn page:
http://msdn.microsoft.com/en-us/libr...34(VS.80).aspx

My question is: Can I make the TreeView that uses a SiteMapProvider show the
heirarchy from the current node down, instead of from the root?

My scenario is that I have a website with several thousand folders, each
folder containing less than 100 pages. What I would like is that if you are
looking at Default.aspx in a folder that's 1 or more levels down, it would
list the pages in that folder, plus it will list the folders directly below
it with their pages like this:

page1.aspx
page2.aspx
+Folder1
page1.aspx
page2.aspx
+Folder2
page1.aspx
page2.aspx

It may be that a SiteMapProvider is the wrong thing for this sort of
application, but I haven't yet located that information.

Thanks,
Steve

--
My BizTalk blog:
http://stevestechnotes.blogspot.com/

Jun 27 '08 #1
2 1600
Steve Harclerode wrote:
Hi,

I have implemented a working SiteMapProvider as shown on an msdn page:
http://msdn.microsoft.com/en-us/libr...34(VS.80).aspx

My question is: Can I make the TreeView that uses a SiteMapProvider show the
heirarchy from the current node down, instead of from the root?

My scenario is that I have a website with several thousand folders, each
folder containing less than 100 pages. What I would like is that if you are
looking at Default.aspx in a folder that's 1 or more levels down, it would
list the pages in that folder, plus it will list the folders directly below
it with their pages like this:

page1.aspx
page2.aspx
+Folder1
page1.aspx
page2.aspx
+Folder2
page1.aspx
page2.aspx

It may be that a SiteMapProvider is the wrong thing for this sort of
application, but I haven't yet located that information.

Thanks,
Steve
Hi,

you can use SiteMapDatasource for this scenario. It has property
StartingNodeUrl where you can set starting node. Look for more info in
msdn library.

Martin
Jun 27 '08 #2
Thanks Martin, I'm glad it was so simple.

- Steve

"Martin Konôpka" <ma************@gmail.comwrote in message
news:u0**************@TK2MSFTNGP06.phx.gbl...
Steve Harclerode wrote:
you can use SiteMapDatasource for this scenario. It has property
StartingNodeUrl where you can set starting node. Look for more info in
msdn library.

Martin

Jun 27 '08 #3

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

Similar topics

8
by: RCS | last post by:
All, OK, so I'm working on a template for our new ASP.NET applications. Part of this, includes using the new menu and breadcrumbs control in ASP.NET 2.0 (I'm using beta 2). I put the...
2
by: dhurwitz | last post by:
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...
0
by: ashish | last post by:
hello all, I am trying to create a custom site map provider and since my site map is very huge, I am loading the required nodes when the CurrentNode property is called.. I am wondering if...
3
by: Adrian Sharp | last post by:
I've got a pretty basic sitemap setup, but am getting a runtime error: "The SiteMapProvider 'MySiteMap' cannot be found." This occurs only when I access my website under IIS 5.1. When I run my...
1
by: shapper | last post by:
Hello, How to make a SiteMapDataSource to use a SiteMapProvider defined in Web.Config? I think I should use something like: MySiteMapDataSource.Provider = ... However I don't know what to...
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: Alex Brown | last post by:
Is it a problem to attach Non-static site map providers under one that inherits from StaticSiteMapProvider ? We are implementing a custom site map provider for a website that is being converted...
0
by: Steve Harclerode | last post by:
I still have one question open -- is there a way to get the TreeView to show me only the current node and child nodes of the current node? Right now it shows me the entire navigation heirarchy,...
0
by: Steve Harclerode | last post by:
Hi, I have implemented a working SiteMapProvider as shown on an msdn page: http://msdn.microsoft.com/en-us/library/ms178434(VS.80).aspx My question is: Can I make the TreeView that uses a...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.