用website控件只能显示根节点,求救!!!
按照书上的例子写的,配置好web.sitemap后发现只能显示根节点,
如果什么都不显示,还能说明我路径或者配置出错,可是只能显示根节点说明什么问题呢?
default.aspx 代码如下:
----------------------------
<%@ Page Language= "VB " %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN " "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<html xmlns= "http://www.w3.org/1999/xhtml " >
<body>
<form id= "form1 " runat= "server ">
<asp:SiteMapPath ID= "SiteMapPath1 " runat= "server "/>
</form>
</body>
</html>
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= "首页 " description= "首页 ">
<siteMapNode url= "search.aspx " title= "维修记录查询 " description= "维修记录查询 " />
<siteMapNode url= "edit.aspx " title= "维修记录编辑 " description= "维修记录编辑 " />
<siteMapNode url= "setup.aspx " title= "选项设置 " description= "选项设置 ">
<siteMapNode url= "setup_goods.aspx " title= "维修物品设置 " description= "维修物品设置 "/>
<siteMapNode url= "setup_project.aspx " title= "工程名称设置 " description= "工程名称设置 "/>
<siteMapNode url= "setup_trouble.aspx " title= "故障现象设置 " description= "故障现象设置 "/>
</siteMapNode>
<siteMapNode url= "system.aspx " title= "系统设置 " description= "系统设置 ">
<siteMapNode url= "system_operater.aspx " title= "操作员设置 " description= "操作员设置 "/>
<siteMapNode url= "setup_log.aspx " title= "操作日志 " description= "操作日志 "/>
</siteMapNode>
</siteMapNode>
</siteMap>
------解决方案--------------------
------解决方案--------------------你使用的方法不对
站点地图怎么用你看看这个http://yuyijq.cnblogs.com/archive/200