Inputting NULLS?

  • Thread starter Thread starter Bill
  • Start date Start date
B

Bill

Is there a way to have a form textbox input a NULL value into the field
within the database when you do an insert or an update instead of it
putting in a ""(blank) value should the user not put any data into that
particular textbox?
 
If you put NULL inside a text than that would be a "NULL"
string and not NULL that you want to put in your database.

What you have to do is explicity check for an empty string
in the text box and if it is assign System.DBNull.Value to
the database field.

Suresh.
 
Back
Top