Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checking for DBNull in DataTable
Message
 
À
18/03/2004 19:51:02
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Divers
Thread ID:
00887448
Message ID:
00887757
Vues:
10
Just to add a little quirkiness here... You can also use IsDBNull.

For example, if you have a datareader, you could do something like:
If drReader.IsDBNull(UserName) Then
   txtUserName.Text = ""
Else
   txtUserName.Text = CStr(drReader("UserName"))
End If
Ciao,
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