4
Answers

Find data in dataset and assign cell value to a variable

Ask a question
wilsonwu

wilsonwu

20y
6.4k
1
Hi, I cannot read the value from the cell. Pls help. The program should read data from an XML file(without schema) and find value from one cell. Here is my code : DataSet dsLogon = new DataSet(); dsLogon.ReadXML(Server.MapPath("XMLFile.XML"); DataView dvServer = new DataView(dsLogon.Tables["Server"]; dvServer.Sort = "Name"; dvServer.RowFilter = "Name = '" + this.Server.Text + "'"; this.AppHost = dvServer.Table.Rows["ServerIP"].ToString(); Thanks Wilson

Answers (4)