请问,SiteMapPath为什么只能显示第一层结点啊?
web.sitemap:
<?xml version="1.0" encoding="utf-8" ?>
<siteMap>
<siteMapNode title="主页" url="home.aspx">
<siteMapNode title="服务" url="service.aspx">
<siteMapNode title="培训" url="training.aspx"/>
<siteMapNode title="技术支持" url="support.aspx"/>
</siteMapNode>
</siteMapNode>
</siteMap>
home.aspx:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="home.aspx.cs" Inherits="_Default" %>
<!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" >
<head runat="server">
<title>无标题页</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<br />
<asp:SiteMapPath ID="SiteMapPath1" runat="server">
</asp:SiteMapPath>
</div>
</form>
</body>
</html>
查了好多资料,最后还是无功而返,谢谢各位的帮忙!