Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem Reading DataRow Value
Message
De
01/10/2008 16:54:20
John Baird
Coatesville, Pennsylvanie, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01352048
Message ID:
01352124
Vues:
27
>
>txtAuthor.Text = (string)oDataSet.Tables[0].Rows[0]["Author"] ?? "";
>
>
>This does not compile.

try this:
            this.txtAuthor.Text = ds.Tables[0].Rows[0]["Author"].ToString() ?? "";
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform