Solved

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

Posted on 2009-04-08
2
1,465 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
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to create an MVC5, Razor Widget 2 36
abstract class C# 1 35
SSRS Deployment problem 5 91
Visual Studio 2015 auto inserted code 12 65
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

679 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