代码如下
<?xml version="1.0" encoding="utf-8" ?>
<siteMap>
<siteMapNode url="21" title="主页" description="11111111">
<siteMapNode url="212" title="小说" description="111111111111111111" />
<siteMapNode url="3573" title="内容" description="11111111111111111111" />
<siteMapNode url="2512" title="小说" description="111111111111111111" />
<siteMapNode url="353" title="内容" description="11111111111111111111" />
<siteMapNode url="2112" title="小说" description="111111111111111111" />
<siteMapNode url="3593" title="内容" description="11111111111111111111" />
</siteMapNode>
</siteMap><%@ Page Language="C#" AutoEventWireup="true" CodeFile="zzzzzz.aspx.cs" Inherits="zzzzzz" %><!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>
<asp:SiteMapPath ID="SiteMapPath1" runat="server" Font-Names="Verdana" Font-Size="0.8em"
PathSeparator="|" RenderCurrentNodeAsLink="True">
<PathSeparatorStyle Font-Bold="True" ForeColor="#507CD1" />
<CurrentNodeStyle ForeColor="#333333" />
<NodeStyle Font-Bold="True" ForeColor="#284E98" />
<RootNodeStyle Font-Bold="True" ForeColor="#507CD1" />
</asp:SiteMapPath>
</div>
</form>
</body>
</html>做出来后也不报错,也不显示内容,二个文件都在根目录下
<?xml version="1.0" encoding="utf-8" ?>
<siteMap>
<siteMapNode url="21" title="主页" description="11111111">
<siteMapNode url="212" title="小说" description="111111111111111111" />
<siteMapNode url="3573" title="内容" description="11111111111111111111" />
<siteMapNode url="2512" title="小说" description="111111111111111111" />
<siteMapNode url="353" title="内容" description="11111111111111111111" />
<siteMapNode url="2112" title="小说" description="111111111111111111" />
<siteMapNode url="3593" title="内容" description="11111111111111111111" />
</siteMapNode>
</siteMap><%@ Page Language="C#" AutoEventWireup="true" CodeFile="zzzzzz.aspx.cs" Inherits="zzzzzz" %><!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>
<asp:SiteMapPath ID="SiteMapPath1" runat="server" Font-Names="Verdana" Font-Size="0.8em"
PathSeparator="|" RenderCurrentNodeAsLink="True">
<PathSeparatorStyle Font-Bold="True" ForeColor="#507CD1" />
<CurrentNodeStyle ForeColor="#333333" />
<NodeStyle Font-Bold="True" ForeColor="#284E98" />
<RootNodeStyle Font-Bold="True" ForeColor="#507CD1" />
</asp:SiteMapPath>
</div>
</form>
</body>
</html>做出来后也不报错,也不显示内容,二个文件都在根目录下
PathSeparator=" ¦" RenderCurrentNodeAsLink="True">
应该在指定一下的要调用的地图吧~
</asp:SiteMapPath>