如何在asp.net中将数据从xml页面获取到gridview [英] How to get data from xml page to gridview in asp.net
本文介绍了如何在asp.net中将数据从xml页面获取到gridview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在asp.net中将数据从xml页面获取到gridview?
How to get data from xml page to gridview in asp.net?
推荐答案
使用DataTable/DataSet的ReadXml
方法读取Xml
将GridView
绑定到DataTable/DataSet
Read Xml using DataTable/DataSet''sReadXml
methods
Bind theGridView
to the DataTable/DataSet
这有什么大不了的吗?
只需使用XDocument.Load加载XML进行适当的更改,然后将其放入gridview ...
Is it a big deal?
Just use XDocument.Load to load the XML make appropriate alteration and put it into a gridview...
这篇关于如何在asp.net中将数据从xml页面获取到gridview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文