Click here to Skip to main content
12,830,941 members (42,044 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# ASP.NET

I am working at eCommerce web site, in this website i want to use sitemap but i couldn't. because i want to use dynamic site map. for example if user select any products than site map should be.

Home>>In-Ear Headphones

where In-Ear Headphones is a product type.

Note : there are at least 5000 produts.

Thanks in advance

Amit Vishwakarma
Posted 18-Nov-12 0:20am
Updated 3-Dec-12 9:04am
Developer Amit Vishwakarma 27-Nov-12 9:32am

thanks for your suggestion,i have at least 5000 products and in future there are no limit than how to use that
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

1.Add SiteMapPath1 to pages
2.Add Web.sitemap to project
3.add code to Web.sitemap

<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="" >
    <siteMapNode url="~/Default.aspx" title="Home"  description="Home">
        <siteMapNode url="~/Default2.aspx" title="In-Ear Headphones"  description="In-Ear Headphones" />
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

I think you need to use StaticSiteMapProvider[^] for that specific kind of job.

Here is an example link to get you started:

Building a dynamic SiteMap in ASP.NET 2.0 for a large website[^]

A bit more advanced technique is using LINQ with derive a class from StaticSiteMapProvider.

An example link:
Creating Dynamic ASP.NET SiteMap using LINQ[^]

Good luck,

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170326.1 | Last Updated 3 Dec 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100