• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1494
  • Last Modified:

Create a Dynamic Sitemap listing products using ASP.NET C#

I need to create a dynamic site map listing products from my database using ASP.NET C#.  Any help and or guidance will be greatly appreciated.

Thanks in Advance
0
BlueKnight66
Asked:
BlueKnight66
1 Solution
 
tetorvikCommented:
Build your own sitemap provider and use it as a SiteMapDataSource for your treeviews, menus and sitemappaths.

See the samples:
http://msdn.microsoft.com/en-us/library/ms178434(VS.85).aspx
ASP.NET page:
    <asp:SiteMapDataSource ID="SiteMapDataSource" runat="server" SiteMapProvider="MyCustomProvider" />
 
Web.Config:
    <siteMap enabled="true" defaultProvider="MyCustomProvider">
      <providers>
        <add name="MyCustomProvider" type="TypeOfMyCustomProvider"  />
      </providers>
    </siteMap>

Open in new window

0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now