asp.net|xml| Data guide: In the ASP.net through the DataSet object binding processing XML file method, with source code
----------------------------------------------------------
*
Tofu production is a boutique
Http://www.asp888.net Tofu Technology Station
If reproduced please retain the copyright information
*/
Test.aspx is the main run program Site.xml is an XML file that contains data
<script language= "VB" runat= "Server" >
Sub Page_Load (Src as Object, E as EventArgs)
' Http://www.asp888.net
Dim DS as New DataSet
Dim FS as FileStream
Dim Reader as StreamReader
FS = New FileStream (Server.MapPath ("Site.xml"), FileMode.Open,FileAccess.Read)
Reader = New StreamReader (FS)
Ds. READXML (Reader)
Fs. Close ()
Dim Source as DataView
Source = new DataView (ds. Tables (0))
Mydatagrid.datasource = Source
Mydatagrid.databind ()
End Sub
</script>
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.