Clarification on siteMap

Last post 11-04-2003 1:47 PM by ShankuN. 3 replies.

Sort Posts:

  • Clarification on siteMap

    11-03-2003, 2:36 PM
    • Member
      40 point Member
    • jkuo44
    • Member since 01-16-2003, 1:07 PM
    • Posts 8
    I was exploring this navigation feature in alpha bits, and need some clarification on 2 points:

    1. If I don't speciify anything about siteMap in web.config file, the default provider will be XmlSiteMapProvider, correct?

    2. If I use SiteMapPath (and Menu control in future betas) in multiple pages, they should pull map from XmlSiteMapProvider automatically. So, is XmlSiteMapProvider using singleton pattern to keep only 1 copy of the sitemap in memory? I don't have to programmatically cache the sitemap myself, right? I guess if I implement my own custom provider, I would need to do all these.


    -- Juyi Kuo
  • Re: Clarification on siteMap

    11-03-2003, 3:17 PM
    • Participant
      1,455 point Participant
    • ShankuN
    • Member since 06-14-2002, 1:26 PM
    • Redmond, WA
    • Posts 287
    • AspNetTeam
    The answer to both questions is yes. :)

    1. The default is the XML site map provider, which is the only one we have. If you add your own provider, you will need to set it as the default by setting the defaultProvider attribute of the <siteMap> config section. You will, of course, also need to add the provider in the <providers> subsection of the section.

    2. The XML sitemap provider internally keeps the same sitemap data, and you don't have to cache it. If you wrote your own provider, you'd need to do that yourself.

    Shanku Niyogi





    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: Clarification on siteMap

    11-03-2003, 3:41 PM
    • Member
      40 point Member
    • jkuo44
    • Member since 01-16-2003, 1:07 PM
    • Posts 8
    Wonderful !!!

    I just thought of 1 more question:

    If I modify and save the app.siteMap file, will the XmlSiteMapProvider monitor that file reload the entire map?

    Thank.

    -- Juyi Kuo
  • Re: Clarification on siteMap

    11-04-2003, 1:47 PM
    • Participant
      1,455 point Participant
    • ShankuN
    • Member since 06-14-2002, 1:26 PM
    • Redmond, WA
    • Posts 287
    • AspNetTeam
    Yes to that one too. :)
    Shanku Niyogi





    This posting is provided "AS IS" with no warranties, and confers no rights.
Page 1 of 1 (4 items)
Microsoft Communities