<?xml version= "1.0 " encoding= "utf-8 "?>
<siteMap xmlns= "http://schemas.microsoft.com/AspNet/SiteMap-File-1.0 ">
<siteMapNode url= " " title= "您的位置 " description= "您的位置 ">
<siteMapNode url= "~/Default.aspx " title= "首页 " description= "首页 ">
<siteMapNode url= "~/Class.aspx?classId=1 " title= "111 " description= "111 ">
<siteMapNode url= "~/Class.aspx?classId=2 " title= "aaa " description= "aaa " />
<siteMapNode url= "~/Class.aspx?classId=3 " title= "bbb " description= "bbb " />
</siteMapNode>
<siteMapNode url= "~/ClassShow.aspx?classId=4 " title= "222 " description= "222 ">
<siteMapNode url= "~/ClassShow.aspx?classId=5 " title= "ccc " description= "ccc " />
<siteMapNode url= "~/ClassShow.aspx?classId=6 " title= "ddd " description= "ddd " />
</siteMapNode>
</siteMapNode>
</siteMapNode>
</siteMap>
目录结构是 您的位置-首页-111(大类)-aaa(小类)-文章展示
现在我想加文章展示页面show.aspx?id= 这个加在哪里?因为所有的”文章展示“都是这个页面只是传的参数id不同而已。如何设计xml的结构呢?刚学sitemap这个东东还没研究透 有点困惑。
------解决方案--------------------------------------------------------
在你的aaa小类展示里面在加一级siteMapNode ,可以看msdn的介绍,我记得是有过这方面的详细demo的
------解决方案--------------------------------------------------------
http://blog.csdn.net/luq885/archive/2005/12/16/554055.aspx
------解决方案--------------------------------------------------------
放到 <siteMapNode url= "~/Class.aspx?classId=2 " title= "aaa " description= "aaa " >
</siteMapNode> 里面
------解决方案--------------------------------------------------------
up·
------解决方案--------------------------------------------------------
up