Solved

multiple site map providers...

Posted on 2007-11-22
1
210 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:BobCSD
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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

AJAX ModalPopupExtender has a required property "TargetControlID" which may seem to be very confusing to new users. It means the server control that will be extended by the ModalPopup, for instance, if when you click a button, a ModalPopup displays,…
In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

706 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now