Solved

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Error on link 14 37
Entity Framework 7 32
Help with C#, MVC, razor. 6 23
Close form "before" open 3 24
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

910 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

25 Experts available now in Live!

Get 1:1 Help Now