以下是我的练习与大家分享哦
1、右击 → 添加新项 → 站点地图
2、工具箱 → 拖SiteMapPath到你所需要导航的页面
在Web.sitemap中配置:
<!--<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="Default2.aspx" title="网页二" description="">
<siteMapNode url="Default3.aspx" title="网页三" description="" />
<siteMapNode url="Default.aspx" title="网页一" description="" />
</siteMapNode>
</siteMap>-->
<!-- 第一种情况 “网页二”为根结点,“网页三”和“网页一”同级属于“当前节点” -->
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="Default2.aspx" title="网页二" description="">
<siteMapNode url="Default3.aspx" title="网页三" description="" >
<siteMapNode url="Default.aspx" title="网页一" description="" />
</siteMapNode>
</siteMapNode>
</siteMap>
<!-- 第二种情况 “网页二”为根结点,“网页三”为父节点,“网页一”属于“当前节点” -->