如下面所示
我不想让一级菜单有链接(因为不需要),所以就不写,但是这样一来menu就不显示了
应该怎么办呢
        <siteMapNode title="系统">
<siteMapNode title="主页" url="Default.aspx"/>
<siteMapNode title="用户操作">
<siteMapNode title="实验预约" url="Reservation.aspx"/>
<siteMapNode title="个人资料" url="personal.aspx"/>
<siteMapNode title="预约查询" url="ReservationView.aspx"/>
<siteMapNode title="实验查询" url="Query.aspx"/>
</siteMapNode>
<siteMapNode title="系统管理" url="Management.aspx"/>
<siteMapNode title="学习资源" url="Resouce.aspx"/>
<siteMapNode title="系统文档" url="Document.aspx"/>
</siteMapNode>

解决方案 »

  1.   

    但是菜单不行啊
    就是不显示。
    一定要每个节点都给url赋值
      

  2.   

     <siteMapNode   title="系统" url = "#"> 
    楼主这样试试 看可否
      

  3.   

    又试了一下
    这样可以
    <siteMapNode title="系统" url="Default.aspx#1">
    <siteMapNode title="主页" url="Default.aspx"/>
    <siteMapNode title="用户操作" url="Default.aspx#2">
    <siteMapNode title="实验预约" url="Reservation.aspx"/>
    <siteMapNode title="个人资料" url="personal.aspx"/>
    <siteMapNode title="预约查询" url="ReservationView.aspx"/>
    <siteMapNode title="实验查询" url="Query.aspx"/>
    </siteMapNode>
    <siteMapNode title="系统管理" url="Management.aspx"/>
    <siteMapNode title="学习资源" url="Resouce.aspx"/>
    <siteMapNode title="系统文档" url="Document.aspx"/>
    </siteMapNode>
    但是感觉这样有些猥琐,白白的多了些东西进去
    不知各位有没有更好的方法