本文介绍了使用XML查询将ASP.NET TreeView绑定到SqlDataSource的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以使用返回XML的SQL查询,以便将TreeView控件绑定到SQL数据?换句话说,我想建立一个将表数据显示为层次XML的查询,并将此XML绑定到TreeView.
Is it possible to use a SQL query that returns XML, in order to bind a TreeView control to SQL data? In other words, I would like to set up a query that presents table data as hieracrhical XML, and bind this XML to the TreeView.
推荐答案
这篇关于使用XML查询将ASP.NET TreeView绑定到SqlDataSource的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!