?
Solved

multiple site map providers...

Posted on 2007-11-22
1
Medium Priority
?
247 Views
Last Modified: 2008-02-01
I have multiple site map providers....

How do I define more than one in th web.config? with the add? I used the add, but I can't seem to find it for databinding?

    <siteMap defaultProvider="XmlSiteMapProvider" enabled="true">
      <providers>
        <add name="XmlSiteMapProvider"
            description="SiteMap provider which reads in .sitemap XML files."
            type="System.Web.XmlSiteMapProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
            siteMapFile="main.sitemap"
            securityTrimmingEnabled="true"/>
        <add name="FAQSiteMapProvider"
            description="SiteMap provider which reads in .sitemap XML files."
            type="System.Web.XmlSiteMapProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
            siteMapFile="faq.sitemap"
            securityTrimmingEnabled="true"/>
      </providers>
    </siteMap>

then I call it in the fire, worthlessly...

                <asp:Menu ID="menu3" SkinID="menuskin3" runat="server" DataSourceID="FAQSiteMapProvider"
                    MaximumDynamicDisplayLevels="0" StaticDisplayLevels="2">
                </asp:Menu>
                <asp:SiteMapDataSource ID="FAQSiteMapProvider" runat="server" />


I know I'm messed up.

0
Comment
Question by:Starr Duskk
[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
1 Comment
 
LVL 2

Accepted Solution

by:
sujithcnair earned 2000 total points
ID: 20337616
<siteMap defaultProvider="XmlSiteMapProvider" enabled="true">
                  <providers>
                        <add siteMapFile="web.sitemap" name="XmlSiteMapProvider" type="System.Web.XmlSiteMapProvider" securityTrimmingEnabled="true"/>
                        <add siteMapFile="web2.sitemap" name="MyXmlSiteMapProvider" type="System.Web.XmlSiteMapProvider" securityTrimmingEnabled="true"/>
                  </providers>
            </siteMap>
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
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 …
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

752 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