如何在asp.net中创建类似结构/二进制结构的树视图 [英] How to create tree view like structure/Binary structure in asp.net

查看:35
本文介绍了如何在asp.net中创建类似结构/二进制结构的树视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我有一个项目,在一个数据库中,员工的详细信息在那里,但是他们有一个层次结构,我想创建一个二元结构,我希望显示层次结构员工。





如果有任何解决方案可以帮助我。



谢谢。

Hello
I have a project , in one database employee details is there but they have a hierarchy, I want to make a binary like structure where I want to show the hierarchy employee .


If any solution then help me.

Thanks.

推荐答案

为什么不使用ASP TREEVIEW CONTROL。

Why dont you use ASP TREEVIEW CONTROL.
<asp:treeview id="TreeView1" runat="server" xmlns:asp="#unknown">
</asp:treeview>





获取数据并填充树视图。最好的方法是创建一个hirarcy的XMLDOC对象,并将该XMLDOC映射到您的树视图



Fetch you data and populate the treeview. The Best way is to create an XMLDOC object of your hirarcy and map that XMLDOC to your treeview


这篇关于如何在asp.net中创建类似结构/二进制结构的树视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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