Solved

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

Posted on 2009-04-08
2
1,449 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
2 Comments
 
LVL 9

Accepted Solution

by:
tetorvik earned 500 total points
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

744 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now