Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Value cannot be null when update mysql database error.
Message
De
23/06/2008 08:22:17
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
 
À
23/06/2008 03:36:41
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Versions des environnements
Database:
MySQL
Divers
Thread ID:
01326063
Message ID:
01326080
Vues:
20
Hi EC Teo,

I hate to be blunt, but why can't check it for null and then set it to an empty string if that is acceptible in your data?
if (myParam == null)
  myParam = "";
Tim

>I m using dataset (.xsd) to connect to mysql database.
>
>In my webform, i have detailsView, enable inserting.
>
>Every thing work fine, until when I insert new a record to mysql. System prompt me error :
>
>Value cannot be null.
>Parameter name: @custPo
>
>if i didn't key in anything to custPo field.
>
>How to make system automatically convert null value to empty string?
>
>TIA.
Timothy Bryan
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform