如何在asp.net中显示嵌套的tre结构 [英] how to show nested tre structure in asp.net

查看:76
本文介绍了如何在asp.net中显示嵌套的tre结构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一个包含id,name,sponsorid等字段的表格,我必须搜索一个id为树根的指定值,并显示所有其他子节点子节点等等。

像1是搜索后的根

1.1 1.2 1.3有孩子1.2还有一个aa aa aa aa aa a aa aaa aaa aaa aaa aaaaaaa aaaaaa hearichal

have a table with fields like id,name,sponsorid and i have to search for one specified value with id as a root of tree and show all the further childs sub childs and so on how it possible .
like 1 is root after search
1.1 1.2 1.3 have childs 1.2 have further a aa aa aa aa aa childs and aa have further aaa and aaa have further aaaaaa so on heirarichal

1
 1.1
 1.2
    a
    aa
    aa
       aaa
           aaaaaa
    aa
    aa
    aa
      
 1.3

推荐答案

<$ c有什么问题$ c> System.Web.UI.WebControls.TreeView :

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.treeview%28v=vs。 110%29.aspx [ ^ ]?



-SA


看看这里:

MSDN - 演练:在TreeView控件中显示分层数据 [ ^ ]

层次结构数据结构与树视图控制的动态绑定[ ^ ]

ASP.NET中的父/子(层次)关系Treeview用户控件开发 [ ^ ]

simple-talk:使用Treeview渲染分层数据 [ ^ ]
Have a look here:
MSDN - Walkthrough: Displaying Hierarchical Data in a TreeView Control[^]
Dynamic Binding Of Hierarchy Data Structure To Treeview Control[^]
Parent/Child (Hierarchical) Relational Treeview User Control Development in ASP.NET[^]
simple-talk: Rendering Hierarchical Data with the Treeview[^]


这篇关于如何在asp.net中显示嵌套的tre结构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆