Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Concatenating from SQL
Message
De
09/09/2004 08:08:42
 
 
À
09/09/2004 07:48:37
Bill Benton
North Florida Software Services
Middleburg, Floride, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00940548
Message ID:
00940553
Vues:
16
Hi, Bill,

Not sure about the specifics of what you're looking to do, but here's a basic example that loops through the rows of a datatable and appends to a string variable:
string cText = "";
foreach(DataRow Dr in MyDataSet.Tables["myTable"].Rows)
   cText += Dr["MyColumn"].ToString().Trim();
Does that help?

Kevin
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform