connetionString = ConfigurationManager.ConnectionStrings["CompanyConnectionString"].ConnectionString; connection = new SqlConnection(connetionString); sql = "select * from Employee"; try { connection.Open(); adapter = new SqlDataAdapter(sql, connection); adapter.Fill(ds); connection.Close(); //Label1.Text = (ds.WriteXml); ds.WriteXml("c:/temp/Product.xml"); Response.Write("Done"); } catch (Exception ex) { Response.Write(ex.ToString()); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)