Solved

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

Posted on 2009-04-08
2
1,470 Views
Last Modified: 2012-05-06
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
Comment
Question by:BlueKnight66
[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
2 Comments
 
LVL 9

Accepted Solution

by:
tetorvik earned 500 total points
ID: 24104767
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
array not updating 8 40
Nested forach loop to linq 3 41
What are MicroServices? 4 65
Adding Rows to Grid 4 26
Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

736 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