将TreeView节点保存到XML [英] Saving TreeView Nodes to XML
本文介绍了将TreeView节点保存到XML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的项目中,我必须使用Windows应用程序C#将所有节点(包括所有根节点和子节点)保存为XML,然后在asp.net C#中检索树视图. div>
看起来您需要的是如何将树另存为xml.
一旦完成,将其检索并在Web中进行设置就不成问题.
用于处理Treeview& XML,请看这里:
1.将TreeView控件加载并保存到XML文件
2. XmlDataSource
In my project,I have to save all the nodes(including all the root and child) to XML using Windows Application C# and then retrieving the treeview in asp.net C#
解决方案
Looks like what you need is how to save a tree as an xml.
Once done, retrieving it and setting it in Web shouldn''t be an issue.
For dealing with Treeview & XML, look here:
1. Loading and Saving a TreeView control to an XML file
2. XmlDataSource
这篇关于将TreeView节点保存到XML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文