J
JJ297
I need some assistance with a check box question.
I have two check boxes on a page:
<asp:CheckBox ID="ChkYes" runat="server" Text="Yes" /
This is under button_Click
My two fields in the databse
Dim displayedQues As Boolean = True
Dim nonDisplayedQues As Boolean = True
ChkYes.Text = "Y"
ChkNo.Text = "N"
If (ChkYes.Checked) Then
displayedQues = True
End If
If (ChkNo.Checked) Then
nonDisplayedQues = True
End If
It's going into the database now but I'm able to select both options
on the other page and when it goes into the database the values are 1
and 0 instead of Y and N.
What am I doing wrong?
Thanks in advance
I have two check boxes on a page:
<asp:CheckBox ID="ChkYes" runat="server" Text="Yes" /
ID="ChkNo" runat="server" Text="No" /><asp:CheckBox
This is under button_Click
My two fields in the databse
Dim displayedQues As Boolean = True
Dim nonDisplayedQues As Boolean = True
ChkYes.Text = "Y"
ChkNo.Text = "N"
If (ChkYes.Checked) Then
displayedQues = True
End If
If (ChkNo.Checked) Then
nonDisplayedQues = True
End If
It's going into the database now but I'm able to select both options
on the other page and when it goes into the database the values are 1
and 0 instead of Y and N.
What am I doing wrong?
Thanks in advance