Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Value cannot be null when update mysql database error.
Message
From
23/06/2008 08:22:17
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
 
To
23/06/2008 03:36:41
General information
Forum:
ASP.NET
Category:
ADO.NET
Environment versions
Database:
MySQL
Miscellaneous
Thread ID:
01326063
Message ID:
01326080
Views:
19
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
Previous
Reply
Map
View

Click here to load this message in the networking platform