473,748 Members | 6,161 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can Sitemap.Current Node use non default sitemap provider?

Here is my situation. I have two sitemaps registered, A and B, where A
is used by my default provider.

When I do Sitemap.Current Node it operates w/ respect to the default
provider. However, I want to do some fun programmatic stuff with
SiteMap.Current Node, with regards to sitemap B on a certain page.

How can I specify that when I say SiteMap.Current Node I want it to talk
to me with respect to my non default sitemap provider?

Thanks in advance,
Amit

Sep 26 '06 #1
1 2486
If you inherit from SiteMapDataSour ce and have overriden the methods
properly, you have all you need to properly display the nodes. Goikn
forward, you will ahve more options:

http://msdn2.microsoft.com/en-us/library/ms432695.aspx

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*************** *************** *************** ****
Think outside of the box!
*************** *************** *************** ****
"AmitKu" <am****@gmail.c omwrote in message
news:11******** **************@ b28g2000cwb.goo glegroups.com.. .
Here is my situation. I have two sitemaps registered, A and B, where A
is used by my default provider.

When I do Sitemap.Current Node it operates w/ respect to the default
provider. However, I want to do some fun programmatic stuff with
SiteMap.Current Node, with regards to sitemap B on a certain page.

How can I specify that when I say SiteMap.Current Node I want it to talk
to me with respect to my non default sitemap provider?

Thanks in advance,
Amit

Sep 27 '06 #2

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

Similar topics

1
2012
by: chris.rust | last post by:
Has anyone else had any trouble setting up a sitemap view to be filtered by roles? We've put a cust role provider in place, and we can verify that it's only being called once for each connection, and is returning the correct roles, but... When we specify a role on the top sitemapnode that role seems to add to the roles on lower level nodes, so we end up needing to put roles="*" on the top node, but then regardless of which role we put...
1
1227
by: Richard Carpenter | last post by:
I am trying to dynamically set the page title in the form load event of my master page, but the CurrentNode property doesn't seem to be available for some reason in the following code, the SiteMap object is available to me and intellisense shows many methods and properties for it, but CurrentNode is not in the list. However, I don't get any indication at design time that it would cause an error. When I try to run the code, I get the error:...
6
1739
by: Dave H | last post by:
I have to questions about SiteMaps 1st) Is there any way to use a wildcard in the SiteMapNode? I'd like: testpage.aspx?Type=Fruit&SubType=Apple and testpage.aspx?Type=Fruit&SubType=Orange to show resolve the same. The subtype has many possibilities and is passed
0
2682
by: dirk | last post by:
I am writing a custom control (code see below) and I am getting an exception that drives me crazy. When I drag my control on a form, Visual Studio shows immediately the following exception: "Error Rendering Control - NiftyMenu1 An unhandled exception has occurred. The provider 'AspNetXmlSiteMapProvider' specified for the defaultProvider does not exist in the providers collection."
0
1076
by: dirk | last post by:
I am writing a custom control (code see below) and I am getting an exception that drives me crazy. When I drag my control on a form, Visual Studio shows immediately the following exception: "Error Rendering Control - NiftyMenu1 An unhandled exception has occurred. The provider 'AspNetXmlSiteMapProvider' specified for the defaultProvider does not exist in the providers collection."
5
15073
by: Tim Mackey | last post by:
hi, i have put my web.sitemap in /App_Data so i can edit it programatically via a web admin page, inheriting the modify permissions from the App_Data folder etc. i was hoping the provider would simply persist any changes i made, but it doesn't happen. e.g. selected.ParentNode.ChildNodes.Remove(selected); throws a NotSupportedException "Collection is read-only"
1
9879
JamieHowarth0
by: JamieHowarth0 | last post by:
Hi guys, So the ever-lasting problem has remained until now - how to create a dynamic sitemap from information stored in a database. Microsoft's MSDN magazine covered how to do this using a custom-made class in C#, specific table architecture and a couple of database triggers (plus how to deal with caching on SQL Server 7 and 2000 - MSSQL 2K5 automatically deals with cache dependencies which handles new sitemap layout and/or content, which...
0
1114
by: Mark | last post by:
here's what i've got so far in my code beind if (SiteMap.CurrentNode != null) { if (SiteMap.CurrentNode != null) { strMetaKeywords = SiteMap.CurrentNode; strMetaDescription = SiteMap.CurrentNode.Description; } else {
1
2052
by: Mark B | last post by:
In my Title and Description web.sitmap file I use: 3255|Home 5434|Support 5342|Contact etc in the Title and Description properties. The number represents a phrase lookup ID in a function that returns a translated word in French, German etc.
0
8989
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8828
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,...
0
9537
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9243
tracyyun
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...
1
6795
isladogs
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...
0
4599
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...
0
4869
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3309
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
2
2780
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.