Solved

multiple site map providers...

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

739 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