title: insert null into date column in database
body: <p>I've got a gridview in vb.net and am trying to insert a null value into a database column - unfortunately, i keep seeing 1900-01-01 being inserted. below is my code and i need help.</p>
  
  <pre><code>Protected Sub gvPOItems_RowCommand(sender As Object, e As System.Web.UI.WebControls.GridViewCommandEventArgs) Handles gvPOItems.RowCommand
    If (e.CommandName = "save") Then
     For i As Integer = 0 To gvPOItems.Rows.Count - 1
      Dim row As GridViewRow = gvPOItems.Rows(i)
  
      Dim value3 As String = DirectCast(row.Cells(9).FindControl("txtbxExpireDate"), TextBox).Text.Replace("'", "''")
      If String.IsNullOrEmpty(value3) Or value3.ToString() Is Nothing Then
       value3 = DBNull.Value.ToString()
      End If
  
   Next
  
  End Sub
  </code></pre>