Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checking for DBNull in DataTable
Message
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Divers
Thread ID:
00887448
Message ID:
00887759
Vues:
12
Oops... a little bug in the ointment... there should be quotes around the column name in the first line of the If:
If drReader.IsDBNull("UserName") Then
   txtUserName.Text = ""
Else
   txtUserName.Text = CStr(drReader("UserName"))
End If

Carl.
Carl Olson, Jr.
CEO, Founder
Cerelogic, Inc.

www.cerelogic.com

"Applying rocket science to business."
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform