Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Handling Null Value In DataSet
Message
De
28/10/2009 22:22:26
Gerry Schmitz
GHS Automation Inc.
Calgary, Alberta, Canada
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01432130
Message ID:
01432148
Vues:
40
Use strongly typed datasets.

Methods for testing and setting fields to null are automatically generated; eg. IsRoleKeyNull() / SetRoleKeyNull()

>I'm doing this:
>
>
>_RoleKey = (int)dsDataSet.Tables[0].Rows[0]["RoleKey"];
>
>
>It's throwing an exception because RoleKey is null in the data. How do I handle this?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform