CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

MS SQL 2008 on ASP.NET Hosting



Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 8/14/2006 1:00:49 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 34 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
CarlWright
Asp.Net User
Multiple sitemaps, switching providers8/14/2006 1:00:49 PM

0/0

Hi,

Apologies if this question has already been answered elsewhere but I haven't been able to find it if it has...

I have two sitemap providers A and B, provider A is set to default in the root web.config file, however I would like to use sitemap B on certain pages. Now, this all works fine for the various navigation controls such as sitemappath and menu since these have methods that allow you to select the provider. What I would like to do though is access the sitemap programatically, but I don't know how to switch between sitemaps A and B.

I have looked at InstantiateProvider but this is confusing me a little.

Any help would be gratefully received.

Many thanks

Carl

lostlander
Asp.Net User
Re: Multiple sitemaps, switching providers8/15/2006 4:23:57 AM

0/0

I'm afraid it's not possible to change the provider property since it's readonly.

   Try this: 

   protected void Button1_Click(object sender, EventArgs e)
    {
        TreeView1.DataSourceID = "XmlDataSource1";
    }

   Also, the SiteMapDataSource's  'SiteMapProvider' property can also be changed.

=======================================

Another approach to use multiple SiteMaps, Check this:

How to: Configure Multiple Site Maps and Site-Map Providers 

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

Wish what i've said helps you! ^_^

2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Pro ASP.NET 2.0 in VB 2005: special edition. Authors: Laurence Moroney, Matthew MacDonald, Pages: 1360, Published: 2006
A First Look at ASP.NET V. 2.0 Authors: Alex Homer, Dave Sussman, Rob Howard, Pages: 498, Published: 2004

Web:
Multiple Sitemap Files Feb 9, 2007 ... How i do switch between the two for navigation? multiple sitemap files. ... < siteMap defaultProvider="Web" enabled="true"> ...
CodeProject: Using Multiple Sitemap Files in ASP.NET 2.0. Free ... Jan 10, 2006 ... Your link leads to a good explanation of the built in features for switching between multiple Sitemaps, by defining multiple ...
Multiple Sitemap Files - ASP.NET Forums I have 2 sitemap files and I change the provider on my SiteMapDataSource to switch between the 2 which works just fine. ...
ASP.NET Site Maps Providers other than the default site-map provider for ASP.NET might not have this restriction. Configuring Multiple Site Maps ...
Using Multiple Sitemap Files in ASP.NET 2.0 (With Menu and ... XPath = "siteMap/siteMapNode"; switch (menu) { case SiteMapMenus. ... the data source is now XML, and not in the format returned from the sitemap provider, ...
Problem with Multiple Sitemaps - ASP.NET Forums I need to switch between two sitemaps within a VS2005 web ...
. Both Admin.sitemap and User.sitemap are valid XML ...
ASP.NET Site Maps Configuring Multiple Site Maps. You can use more than one site-map file or provider to describe the navigation structure of an entire Web site. ...
Dynamic menu, multiple sitemapprovider, etc. - Programmatically ... Feb 6, 2008 ... a) Create multiple Sitemap files. Specify it in the web.config file. Then dynamically switch the sitemapdatasource to the right ...
How to access multiple sitemap files? - ASP Free Visit ASP Free to discuss How to access multiple sitemap files? ... And then in web.sitemap file I have this: ...
Bit-Stream Switching in Multiple Bit-Rate Video Streaming Using ... To tackle this problem, the paper proposes a bit-stream switching framework based on the Wyner-Ziv coding. Within the propose framework, the multiple ...




Search This Site:










folder exceptions in app_theme

how to adjust scrolling in menu control...

using images within .asp menu control

how can i trick the sitemappath?

dynamically adding html to navigation code

content/contentplaceholder question

accessing master page control

rebuild sitemap

how to change the link of a linkbutton on each page?

web.config global page values

need help with initial application design

error when changing datasourceid of a menu control

web.sitemap required by xmlsitemapprovider

masterpage css problem

refreshing masterpages

create website without refreshing

popup calendar in master page

including another site into mine

help with treeview changes

regarding menu control styles

ajax and usercontrol

dynamic controls and masterpage problem

problem with repeater inside ajax and masterpage

menu control with javascript problems...

a page can have only one server-side form tag

global css and page css based on user login?

page_load doesn't run on content pages.. :(

placeholder disappears after second page...

website optimisation

sharing master pages across applications

  Privacy | Contact Us
All Times Are GMT