web.sitemap的代码:
?xml version="1.0" encoding="utf-8" ?> <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" > <siteMapNode url="" title="退库管理" description="单击此进行退库管理"> <siteMapNode url="" title="历史退库管理" description="click me" > <siteMapNode url="down_right_tuiku_history.aspx" title="查看" description="click me"/> <siteMapNode url="down_right_tuiku_delete.aspx" title="删除历史记录" description="click me"/> </siteMapNode> <siteMapNode url="" title="新建退库" description="click me"> <siteMapNode url="down_right_tuiku_edit.aspx" title="编辑退库药品" description="click me"/> <siteMapNode url="down_right_tuiku_sure.aspx" title="待退库药品确认" description="click me"/> </siteMapNode> </siteMapNode> </siteMap>
HTML代码:
<asp:TreeView ID="TreeView1" runat="server" Target="right" ShowLines="true" DataSourceID="SiteMapDataSource1" Style="left: 0px; position: relative; top: 0px" Width="180px"> </asp:TreeView> <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" />