473,657 Members | 2,582 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to programmaticall y change SiteMap Provider?

Hi All,

I have two siteMap providers:

<siteMap defaultProvider ="SiteMap_EN " enabled="true">
<providers>
<add name="SiteMap_F R" siteMapFile="We b_FR.sitemap"
type="System.We b.XmlSiteMapPro vider" />
<add name="SiteMap_E N" siteMapFile="We b_EN.sitemap"
type="System.We b.XmlSiteMapPro vider" />
</providers>
</siteMap>

and I'd programmaticall y set the SiteMap Provider on different MasterPages,
how do I alter the defaultProvider ?
Best regards,
Keven
Feb 23 '07 #1
0 2202

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

Similar topics

1
2003
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...
0
1265
by: jonathan.eves | last post by:
Hi I am having a hard time with localization of the sitemap. I have created a custom SiteMapProvider which inherits from StaticSiteMapProvider. For which everything works fine. The next thing i did was to add a unique resource key to each the nodes and add these resource keys to my globalisation database. Running a SQL Trace shows that the call for the localized resource is never made. Here is the code that builds creates my nodes
2
1633
by: Andy Sutorius via DotNetMonster.com | last post by:
I have a current website divided into 2 sections. Each section needs it's own sitemap and treeview. Is it possible to have 2 different sitemaps in a website? Everything that I have read says you create a web.sitemap file and stick it in your root and connect it to the treeview. I don't see anything about needing 2 web.sitemap files and 2 trees. Thanks for your help. -- Message posted via DotNetMonster.com
1
2483
by: AmitKu | last post by:
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?
3
5732
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 web.config. In the pages I have a sitemap datasource and corresponding menus. Question: - Where is the data cached? - How can I release it from the cache and refresh the data?
1
9868
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...
1
2032
by: VB Programmer | last post by:
Using ASP.NET 2.0 with Memberships. I have 2 folders, admin and client. Each folder has a sitemap file, admin.sitemap and client.sitemap, in the appropriate directory. I have a master page with a menu control. How can I load the correct sitemap file into the menu control based on the user's current role?
0
1380
by: jimdav24 | last post by:
I've implemented three sitemap providers for my SharePoint site. They all work but after 24 hours up to 2 weeks of uninterrupted service, I get the error "The file sitemap.sitemap required by XmlSiteMapProvider does not exist." It seems to be a permissions problem since I can browse the site when logged on to the server as a local admin. However, I can't browse the site remotely as a user with read-only access to the sharepoint site and...
0
1100
by: Andy B | last post by:
I am using the default XML provider for the sitemap. I need the sitemap to display in different lists seperated based on node. Here is an example sitemap that I have. in web.sitemap (the list of main site nodes, I have this: <siteMapNode Title="Navigation"> <SiteMapNode SiteMapFile="~/EternityRecords.sitemap" /> <siteMapNode siteMapFile="~/InHim.sitemap" /> </siteMapNode>
0
8305
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
8825
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...
1
8503
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8605
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...
0
7324
agi2029
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...
0
5632
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();...
0
4151
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...
2
1953
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1611
bsmnconsultancy
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...

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.