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
Solved

multiple site map providers...

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

837 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