Solved

multiple site map providers...

Posted on 2007-11-22
1
240 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 500 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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

749 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