site navigation
-
hi i am using sitemappath control in my website.i have some pages in common like: home>>stonecollection>>ProductStone>>Cart>>... home>>newarrivals>>ProductStone>>Cart>>... i use the following sitemap file:
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" ><siteMapNode url="Default2.aspx" title="Home" description="This is Home Page.">
<siteMapNode url="Stones.aspx" title="stones" description="Refine stones page">
<siteMapNode url="ProductStone.aspx" title="ProductStone" description="Product Stone page">
<siteMapNode url="Cart.aspx" title="Cart" description="Cart page"></siteMapNode>
</siteMapNode>
</siteMapNode>
<siteMapNode url="Newarrivals.aspx" title="stones" description="Refine stones page">
<siteMapNode url="ProductStone.aspx" title="ProductStone" description="Product Stone page">
<siteMapNode url="Cart.aspx" title="Cart" description="Cart page"></siteMapNode>
</siteMapNode>
</siteMapNode>
</siteMapNode>
</siteMap>but i got error:multiple nodes with same url found. when i remove the sitemapnode with url productstone.aspx and cart.aspx from one of the parent node the problem is solved but i want sitemap in above pattern.tell me what to do..... thank's
-
hi i am using sitemappath control in my website.i have some pages in common like: home>>stonecollection>>ProductStone>>Cart>>... home>>newarrivals>>ProductStone>>Cart>>... i use the following sitemap file:
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" ><siteMapNode url="Default2.aspx" title="Home" description="This is Home Page.">
<siteMapNode url="Stones.aspx" title="stones" description="Refine stones page">
<siteMapNode url="ProductStone.aspx" title="ProductStone" description="Product Stone page">
<siteMapNode url="Cart.aspx" title="Cart" description="Cart page"></siteMapNode>
</siteMapNode>
</siteMapNode>
<siteMapNode url="Newarrivals.aspx" title="stones" description="Refine stones page">
<siteMapNode url="ProductStone.aspx" title="ProductStone" description="Product Stone page">
<siteMapNode url="Cart.aspx" title="Cart" description="Cart page"></siteMapNode>
</siteMapNode>
</siteMapNode>
</siteMapNode>
</siteMap>but i got error:multiple nodes with same url found. when i remove the sitemapnode with url productstone.aspx and cart.aspx from one of the parent node the problem is solved but i want sitemap in above pattern.tell me what to do..... thank's
-
Hi The problem with this control is that you cannot use same page for multiple nodes. As in your case are using ProductStone.aspx multiple times
Regards Aman Bhullar www.arlivesupport.com[^]
-
Yes, You can use dummy query string or # with the url. That will resolve your issue !!
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.
-
hi i am using sitemappath control in my website.i have some pages in common like: home>>stonecollection>>ProductStone>>Cart>>... home>>newarrivals>>ProductStone>>Cart>>... i use the following sitemap file:
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" ><siteMapNode url="Default2.aspx" title="Home" description="This is Home Page.">
<siteMapNode url="Stones.aspx" title="stones" description="Refine stones page">
<siteMapNode url="ProductStone.aspx" title="ProductStone" description="Product Stone page">
<siteMapNode url="Cart.aspx" title="Cart" description="Cart page"></siteMapNode>
</siteMapNode>
</siteMapNode>
<siteMapNode url="Newarrivals.aspx" title="stones" description="Refine stones page">
<siteMapNode url="ProductStone.aspx" title="ProductStone" description="Product Stone page">
<siteMapNode url="Cart.aspx" title="Cart" description="Cart page"></siteMapNode>
</siteMapNode>
</siteMapNode>
</siteMapNode>
</siteMap>but i got error:multiple nodes with same url found. when i remove the sitemapnode with url productstone.aspx and cart.aspx from one of the parent node the problem is solved but i want sitemap in above pattern.tell me what to do..... thank's
try like this..!
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" ><siteMapNode url="Default2.aspx" title="Home" description="This is Home Page.">
<siteMapNode url="Stones.aspx" title="stones" description="Refine stones page">
<siteMapNode url="ProductStone.aspx" title="ProductStone" description="Product Stone page">
<siteMapNode url="Cart.aspx" title="Cart" description="Cart page"></siteMapNode>
</siteMapNode>
</siteMapNode>
<siteMapNode url="Newarrivals.aspx" title="stones" description="Refine stones page">
<siteMapNode url="ProductStone.aspx?ssd=asd" title="ProductStone" description="Product Stone page">
<siteMapNode url="Cart.aspx?ssd=asd" title="Cart" description="Cart page"></siteMapNode>
</siteMapNode>
</siteMapNode>
</siteMapNode>
</siteMap>For More info of Menu Control refer this link..! Menu Control Selected Item Color Change Depending on Selection [^]
LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.