// Mention System.IO for access FileStream class FileStream fs = new FileStream("FilePath", FileMode.Open); //Mention System.Data for access Dataset and Datatable class DataSet ds = new DataSet(); ds.ReadXml(fs); // read XML schema // Use a DataTable to display the members. DataTable dt = ds.Tables["member"]; textbox.Text = dt.Rows[row][col].ToString() // binding textbox to specified rows
DataSet ds=new DataSet(); DataSet ds = new DataSet(); //read the xml file to dataset ds.ReadXml(Server.MapPath("XML.xml")); //get the value to text box TextBox1.Text=ds.Tables[0].Rows[0][0].ToString();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)