Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Any easy way to create an XML table
Message
De
08/10/2002 19:44:39
 
 
À
08/10/2002 18:07:53
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00709062
Message ID:
00709093
Vues:
21
>I need to create an XML Table from a Windows Form using an SQL table as the source. Know very little about XML.
//Connect to the data base and get the table
SqlConnection data = new SqlConnection(connectionString);
DataSet dataSet = new DataSet();
SqlDataAdapter getTable = new SqlDataAdapter("select * from table", data);
getTable.Fill(dataSet, "table");
textBox1.Text = dataSet.GetXml();
Does it need to be any fancier than that?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform