如何通过Ms sql2008数据库绑定Treeview [英] How to bind Treeview by Ms sql2008 database
本文介绍了如何通过Ms sql2008数据库绑定Treeview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Mt表名Tree和ChildId(第一列)和ParentId(第二列)都是varchar值
提前感谢
Mt table name Tree and ChildId (1st col) and ParentId(2nd col) both are varchar values
thanks in advance
推荐答案
根据这个 [ ^ ],您需要将数据作为XML 。因此,您需要先将数据从SQL Server转换为XML。
According to this[^], you need your data to be XML. So you need to convert your data from SQL Server to XML first.
这篇关于如何通过Ms sql2008数据库绑定Treeview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文