日期:2014-05-17 浏览次数:20536 次
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="~/SendMsg.aspx" title="首页" description="">
<siteMapNode url="" title="节点1.1" description=""></siteMapNode>
<siteMapNode url="" title="节点1.2" description=""></siteMapNode>
<siteMapNode url="" title="节点1.3" description="">
<siteMapNode url="" title="节点1.3.1" description=""/>
<siteMapNode url="" title="节点1.3.2" description=""/>
<siteMapNode url="" title="节点1.3.3" description=""/>
<siteMapNode url="" title="节点1.3.4" description=""/>
</siteMapNode>
<siteMapNode url="" title="节点1.4" description="" >
<siteMapNode url="" title="节点1.4.1" description="" />
<siteMapNode url="" title="节点1.4.2" description=""/>
</siteMapNode>
</siteMapNode>
</siteMap>
<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" StartingNodeOffset="0" />
<asp:TreeView ID="menuleft"
runat="server"
NodeIndent="0"
DataSourceID="SiteMapDataSource1"
ShowLines="false"
NodeWrap="false"
ShowExpandCollapse="true">
</asp:TreeView>
protected void Page_PreRender(object sender, EventArgs e)
{
foreach (TreeNode node in menuleft.Nodes)//menuleft为上面定义的TreeView
{
&n