?
Solved

sqlsitemapprovider and multiple web.sitemap files

Posted on 2006-07-18
3
Medium Priority
?
529 Views
Last Modified: 2008-01-16
Hello

In previous web projects I have had different web.sitemap files for different menus on my page (e.g. top menu and left hand nav).

I can't see any obvious way with the sqlsitemapprovider to emulate multiple web.sitemap fiels for different menus. Is there a ways i can create separate 'menus' with the sqlsitemapprovider?

Thanks a lot

andrea
0
Comment
Question by:andieje
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 27

Accepted Solution

by:
Sammy Ageil earned 2000 total points
ID: 17135452
It's actually easy to create multiple sitemaps based on the menus you choose.
from MSDN
http://msdn2.microsoft.com/en-us/library/ms178426.aspx

<configuration>
  <!-- other configuration sections -->
  <system.web>
    <!-- other configuration sections -->
    <siteMap defaultProvider="XmlSiteMapProvider">
     <providers>
       <add
         name="Company1SiteMap"
         type="System.Web.XmlSiteMapProvider"
         siteMapFile="~/Company1/Company1.sitemap" />
       <add
         name="Company2SiteMap"
         type="System.Web.XmlSiteMapProvider"
         siteMapFile="~/Company2/Company2.sitemap" />
     </providers>
    </siteMap>
  </system.web>
</configuration>

HTH
0
 

Author Comment

by:andieje
ID: 17136680
Hi

I'm using SQLSiteMapProvider which stores he sitemap in a database and not an xml file.

Also, my understanding of teh above method os that only provider is active at a time so only one menu can be seen at at a time. Is that right?
0
 

Author Comment

by:andieje
ID: 17138954
Hi

I'm wrong - you can use multiple site map providers at the same time.

However, I still would like to know if i can emulate multiple sitemaps with sqlsitemapprovider

thanks
andrea
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question