title: Checkbox has values of 0 and -1?
body: <p>I have some checkboxes on my webapp, and a save button.  When I click the save button, I save the <code>checked</code> state of the checkboxes to the database.</p>
  
  <p>When the checkboxes are not checked, I get <code>0</code>'s in the database.  However, when they are <code>checked</code>, I get <code>-1</code>'s in the database.  I was expecting <code>1</code>'s.  Are the <code>-1</code>'s normal for checked states?</p>
  
  <p><strong>Sample code:</strong></p>
  
  <pre><code>Function ProcessAction(ByVal checkbox1 As Integer, ByVal checkbox2 As Integer) As Integer
  
      connection = New SqlConnection(ConfigurationSettings.AppSettings("connString"))
  
      command = New SqlCommand("stored_procedure_name_here", connection)
      command.CommandType = CommandType.StoredProcedure
  
      command.Parameters.Add(New SqlParameter("@id", SqlDbType.Int, 4)).Value = 100
      command.Parameters.Add(New SqlParameter("@checkbox1", SqlDbType.Int, 4)).Value = checkbox1
      command.Parameters.Add(New SqlParameter("@checkbox2", SqlDbType.Int, 4)).Value = checkbox2
  
      command.Connection.Open()
      command.ExecuteNonQuery()
      command.Connection.Close()
  
      Return 1
  End Function
  </code></pre>
  
  <p><strong>The call:</strong></p>
  
  <pre><code>Sub ButtonClick(ByVal Source As Object, ByVal E As EventArgs)
      ProcessAction(checkbox1.Checked, checkbox2.Checked)
  End Sub
  </code></pre>