Inputting NULLS?

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?
 
S

Suresh

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top