Click here to Skip to main content
15,881,089 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello....

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
Updated 3-Dec-12 8:04am
v6
Comments
avjabalpur 27-Nov-12 9:32am    
Hi..Ali91Asadi

thanks for your suggestion,i have at least 5000 products and in future there are no limit than how to use that

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

XML
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
    <siteMapNode url="~/Default.aspx" title="Home"  description="Home">
        <siteMapNode url="~/Default2.aspx" title="In-Ear Headphones"  description="In-Ear Headphones" />
    </siteMapNode>
</siteMap>
 
Share this answer
 
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,
OI
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900