【问题标题】:Site Map issue with format in VB 2010VB 2010 格式的站点地图问题
【发布时间】:2013-11-20 19:14:23
【问题描述】:

<siteMapNode url="Customer support.aspx" title="Customer support"  description=""/>
  <siteMapNode url="ProductRegistration.aspx" title="Register products"  description=""/>
  <siteMapNode url="CustomerSurvey.aspx" title="Complete customer survey"  description=""/>
  <siteMapNode url="ContactUs.aspx" title="Contact us"  description=""/>
<siteMapNode url="TechnicianSupport.aspx" title="Technician support"  description=""/>
  <siteMapNode url="CustomerIncidentDisplay.aspx" title="Display customer incidents"  description=""/>
  <siteMapNode url="IncidentUpdate.aspx" title="Update incidents"  description="">
</siteMapNode>

<siteMapNode url="Administration.aspx" title="Administration"  description=""/>
  <siteMapNode url="ProductMaintenance.aspx" title="Maintain products"  description=""/>
  <siteMapNode url="CustomerMaintenance.aspx" title="Maintain customers"  description=""/>
  <siteMapNode url="TechnicianMaintenance.aspx" title="Maintain technicians"  description=""/>
  <siteMapNode url="IncidentCreation.aspx" title="Create incidents"  description=""/>
  <siteMapNode url="TechnicianIncidentSummary.aspx" title="Display techninican incidents"  description=""/>
  <siteMapNode url="IncidentAssignment.aspx" title="Assign incidents"  description=""/>
  <siteMapNode url="IncidentDisplay.aspx" title="Display incidents"  description=""/>
  <siteMapNode url="CustomerDisplay.aspx" title="Display customers"  description=""/>
<siteMapNode url="Map.aspx" title="Site Map"  description="">
</siteMapNode>

结果并不完全正确...当我将 TreeView 添加到我的 Map.aspx 网页时,它将 Home 显示为唯一的父节点。主页应该是主要的,客户支持、技术支持和管理作为下一个头节点,然后是所有其他节点。 这有意义吗?

【问题讨论】:

    标签: vb.net sitemap


    【解决方案1】:

    Home 是所有其他节点所在的根节点。

    我个人从来没有使用过TreeView,但是当我使用SiteMapDataSource 构建导航菜单时,我设置ShowStartingNode="false" 跳过根节点。

    【讨论】:

    • 我必须在我正在创建的项目网站中使用树视图。我必须这样设置。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-04-17
    • 2014-02-21
    • 1970-01-01
    • 2011-12-08
    • 2010-10-20
    • 2011-04-25
    相关资源
    最近更新 更多