-
October 25th, 2012, 08:16 AM
#1
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
-
October 25th, 2012, 10:02 AM
#2
Re: Checkbox value
.Text is not the value for the checkbox.
Use the .Checked or .Value property
-
October 25th, 2012, 05:55 PM
#3
Re: Checkbox value
It will give the name of the LB. Need a number()
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|