XML with asp.net (1)

xiaoxiao2021-03-06  104

First Step:

Build a Xml.xml

French toast

11.21

Tomato

10

Next Step

Use dataset to get XML (DOXML.ASPX)

Private Void Page_Load (Object Sender, System.EventArgs E)

{

/ / Place the user code here to initialize the page

DataSet DS = New DataSet ();

DS.Readxml (MAPPATH ("XML.xml"));

DataGrid1.datasource = DS;

DataGrid1.databind ();

}

转载请注明原文地址:https://www.9cbs.com/read-103166.html

New Post(0)