|
|
XML with asp.net(1) |
|
|
作者:未知 来源:月光软件站 加入时间:2005-2-28 月光软件站 |
first step: build a XML.xml <Menu> <MenuItem> <Food> French Toast </Food> <Price> 11.21 </Price> </MenuItem> <MenuItem> <Food> tomato </Food> <Price> 10 </Price> </MenuItem> </Menu>
NEXT STEP use dataset to get xml (doxml.aspx)
private void Page_Load(object sender, System.EventArgs e) { // 在此处放置用户代码以初始化页面 DataSet ds=new DataSet (); ds.ReadXml (MapPath("XML.xml")); DataGrid1.DataSource =ds; DataGrid1.DataBind (); }

|
|
相关文章:相关软件: |
|