wilsonwu

wilsonwu

  • NA
  • 7
  • 0

Find data in dataset and assign cell value to a variable

Jun 24 2004 11:17 PM
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)