Dim FcommunicationR As Integer
Dim p27 As New SqlParameter("@Quest24communication", FcommunicationR)
If Fcommunication.Checked = True Then
FcommunicationR = 1
End If
cmdInsert.Parameters.Add(p27)
<asp:CheckBox ID="Fcommunication" runat="server" Text="Communication" />
This does not error out but I do not get the value of 1 in my smallinteger field in sql when the checkbox is checked. I know I am missing something I think in the dim p27 that is not passing the actual value of Fcommincation 1. Thanks
Dim p27 As New SqlParameter("@Quest24communication", FcommunicationR)
If Fcommunication.Checked = True Then
FcommunicationR = 1
End If
cmdInsert.Parameters.Add(p27)
<asp:CheckBox ID="Fcommunication" runat="server" Text="Communication" />
This does not error out but I do not get the value of 1 in my smallinteger field in sql when the checkbox is checked. I know I am missing something I think in the dim p27 that is not passing the actual value of Fcommincation 1. Thanks