-
Checkbox value
Hi,
Why when I click the checkbox and submit it stills submit a False value?
Thank you
Code:
Try
query = "UPDATE TblChangeControlDet SET PeerRvwApp=@PeerRvwApp WHERE ChangeID=@ChangeID"
cmdC = New SqlCommand(query, conn)
cmdC.Parameters.AddWithValue("@PeerRvwApp", chkpeer.Text)
cmdC.ExecuteNonQuery()
Catch ex As Exception
MsgBox(ex.Message, MsgBoxStyle.Information, "CCMS")
End Try
ote: chkpeer is the name of the checkbox..
Thxs
-
Re: Checkbox value
.Text is not the value for the checkbox.
Use the .Checked or .Value property
-
Re: Checkbox value
It will give the name of the LB. Need a number()