locked
How Do I: Create a Full-Featured Customer Login Portal RRS feed

  • Question

  • User1593455396 posted

    I took the tutorial "How Do I: Create a Full-Featured Customer Login Portal?" Near the end it discusses adding the sitemap to the webconfig file but it does not discuss the settings for it. Not sure where "Foo" is coming from to make it work. Any help would be great.
    >
    > <siteMap defaultProvider="foo" enabled="true">
    >        <providers>
    >          <add name="foo" siteMapFile="web.sitemap"  type="System.Web.XmlSiteMapProvider" securityTrimmingEnabled="true"  />
    >        </providers>
    >      </siteMap>

     

    http://www.asp.net/learn/videos/view.aspx?tabid=63&id=47

    Monday, April 23, 2007 2:40 PM

Answers

  • User-186742165 posted

    Hi

    To make it easier to understand, I change the example

    > <siteMap defaultProvider="foo" enabled="true">
    >        <providers>
    >          <add name="foo" siteMapFile="web.sitemap"  type="System.Web.XmlSiteMapProvider" securityTrimmingEnabled="true"  />
    >          <add name="foo2" siteMapFile="web2.sitemap"  type="System.Web.XmlSiteMapProvider" securityTrimmingEnabled="true"  />
    >          <add name="foo3" siteMapFile="web3.sitemap"  type="System.Web.XmlSiteMapProvider" securityTrimmingEnabled="true"  />
    >        </providers>
    >      </siteMap>

    Then you can specify your SiteMapProvider in the webcontrol property or use the default "foo"

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, April 25, 2007 5:03 AM