动态站点地图实施 [英] Dynamic site map implementation
本文介绍了动态站点地图实施的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好....
我在电子商务网站工作,在这个网站我想使用网站地图,但我不能。因为我想使用动态站点地图。例如,如果用户选择任何产品而非网站地图应该是。
主页>>入耳式耳机
其中入耳式耳机是一种产品类型。
注意:有至少5000个产品。
提前付款
Amit Vishwakarma
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
推荐答案
1.将SiteMapPath1添加到页面
2.将Web.sitemap添加到项目中
3.添加Web.sitemap代码
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="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>
我认为你需要使用StaticSiteMapProvider [ ^ ]针对该特定类型的工作。
以下是一个示例链接,可以帮助您入门:
在ASP.NET 2.0中为大型网站构建动态SiteMap [ ^ ]
更先进的技术是使用LINQ从<$ c派生一个类$ c> StaticSiteMapProvider 。
示例链接:
使用LINQ创建动态ASP.NET SiteMap [ ^ ]
祝你好运,
OI
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 fromStaticSiteMapProvider
.
An example link:
Creating Dynamic ASP.NET SiteMap using LINQ[^]
Good luck,
OI
这篇关于动态站点地图实施的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文