473,396 Members | 1,891 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,396 software developers and data experts.

Can Sitemap.CurrentNode 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.CurrentNode it operates w/ respect to the default
provider. However, I want to do some fun programmatic stuff with
SiteMap.CurrentNode, with regards to sitemap B on a certain page.

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

Thanks in advance,
Amit

Sep 26 '06 #1
1 2470
If you inherit from SiteMapDataSource 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.comwrote in message
news:11**********************@b28g2000cwb.googlegr oups.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.CurrentNode it operates w/ respect to the default
provider. However, I want to do some fun programmatic stuff with
SiteMap.CurrentNode, with regards to sitemap B on a certain page.

How can I specify that when I say SiteMap.CurrentNode 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
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...
1
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...
6
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 ...
0
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: ...
0
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: ...
5
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...
1
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...
0
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 =...
1
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...
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: 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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...

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.