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/ 2 1634
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 SiteMapDatasour ce for this scenario. It has property
StartingNodeUrl where you can set starting node. Look for more info in
msdn library.
Martin
Thanks Martin, I'm glad it was so simple.
- Steve
"Martin Konôpka" <ma************ @gmail.comwrote in message
news:u0******** ******@TK2MSFTN GP06.phx.gbl...
Steve Harclerode wrote:
you can use SiteMapDatasour ce for this scenario. It has property
StartingNodeUrl where you can set starting node. Look for more info in
msdn library.
Martin
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 hierarchy of the applications and navigation in a database, and am
able to pull that into the app by inheriting StaticSiteMapProvider. So
that's set and works great.
|
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 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.
|
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 this would be a performance bottleneck, since
according to my understanding a single nstance of sitemapprovider is
loaded for the app domain
|
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 app
under the debugger (localhost:1946) I have no problem. I thought of trying
IIS6.0, but am running XP, so can't upgrade to 6.0. Any ideas?
my web.config relevant lines
<siteMap>
<providers>
|
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 place in "...".
I tried to use a string with the name of the provider but it didn't
| |
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
Asp.Net SiteMapProvider:
The only difference is:
attribute Visible = "True".
|
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 to ASP.NET 2.0. The conversion is going well because some of the
features, like Master Pages and Site Maps, of ASP.NET 2.0 allow us to migrate
away from a "top frame" style of navigation to a standard dynamic cascading
top menu with minimal...
|
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, starting with the
root node from the SiteMapProvider, no matter which page in the heirarchy
I'm currently on.
Thanks,
Steve
|
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 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
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |