<asp:TreeView ID="TreeView1" runat="server" DataSourceID="xmlDs" >
<DataBindings>
<asp:TreeNodeBinding DataMember="siteMapNode" ImageUrlField="image"
NavigateUrlField="url" TargetField="target" TextField="title" />
</DataBindings>
</asp:TreeView>
<?xml version="1.0" encoding="utf-8" ?>
<siteMapNode title="固定资产管理系统" url="#" description="" target="" image="~/images/desk.gif">
<siteMapNode title="系统管理" url="#" description="" target="" image="~/images/tree.gif">
<siteMapNode title=" 员工管理" url="~/SystemManage/EmpManage.aspx" description="" target="mainFrame" image="~/images/tree.gif"/>
</siteMapNode>
<siteMapNode title="基础信息" url="#" description="" target="" image="~/images/tree.gif">
<siteMapNode title=" 机构管理" url="~/BaseManage/OrganManage.aspx" description="" target="mainFrame" image="~/images/tree.gif"/>
<siteMapNode title=" 使用地管理" url="~/BaseManage/BranchManage.aspx" description="" target="mainFrame" image="~/images/tree.gif"/>
<siteMapNode title=" 类别管理" url="~/BaseManage/TypeManage.aspx" description="" target="mainFrame" image="~/images/tree.gif"/>
</siteMapNode>
<siteMapNode title="资产管理" url="#" description="" target="" image="~/images/tree.gif">
<siteMapNode title=" 资产列表" url="~/AssetManage/AssetInfo.aspx" description="" target="mainFrame" image="~/images/tree.gif"/>
<siteMapNode title=" 资产入库" url="~/AssetManage/AddAsset.aspx" description="" target="mainFrame" image="~/images/tree.gif"/>
<siteMapNode title="领用列表" url="~/AssetManage/Take.aspx" description="" target="mainFrame" image="~/images/tree.gif"/>
<siteMapNode title="查询管理" url="#" description="" target="" image="~/images/tree.gif">
<siteMapNode title="调拨查询" url="~/AssetManage/Query_Move.aspx" description="" target="mainFrame" image="~/images/tree.gif"/>
<siteMapNode title="维修查询" url="~/AssetManage/Query_Repair.aspx" description="" target="mainFrame" image="~/images/tree.gif"/>
<siteMapNode title="报废查询" url="~/AssetManage/Query_Bad.aspx" description="" target="mainFrame" image="~/images/tree.gif"/>
<siteMapNode title="分类查询" url="~/AssetManage/QueryMain.aspx" description="" target="mainFrame" image="~/images/tree.gif"/>
</siteMapNode>
</siteMapNode>
<siteMapNode title="审批管理" url="#" description="" target="" image="~/images/tree.gif">
<siteMapNode title="采购列表" url="~/ApproveManage/Task_Admin.aspx" description="" target="mainFrame" image="~/images/tree.gif"/>
</siteMapNode>
</siteMapNode>
- 本文标题: ASP.NET 树型Tree绑定XML
- 文章分类:【.NET/Web】
- 非特殊说明,本文版权归【胡同里的砖头】个人博客 所有,转载请注明出处.
- 上一篇:VS2005调试ASP.NET出现未能开始侦听端口解决办法
- 下一篇: 绑定句柄无效的解决方案