private void button1_Click(object sender, EventArgs e) { connection.Open(); string str = "select col1 from Table where Clo2='" + txt1.Text + "'"; SqlCommand command = new SqlCommand(str, con); XmlReader xmlreader = command .ExecuteXmlReader(); xmlreader.Read(); txt2.Text = xml.ReadOuterXml(); XmlDocument document = new XmlDocument(); document .PreserveWhitespace = true; document .LoadXml(txt2.Text); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)