Hi, I am creating a web feedback form that has a both a checkbox and
listbox on it that are both databound to a database. I have been
researching all day and have found multiple answers for displaying the
results, but none of them work with databound checkbox lists. My
current code is:
Sub Check_Clicked(s ender as Object, e As EventArgs)
lblPropTypes.Te xt = "Selected Item(s):<br><br >"
Dim i As Integer
For i=0 To cblPropTypes.It ems.Count - 1
If cblPropTypes.It ems(i).Selected Then
lblPropTypes.Te xt += cblPropTypes.It ems(i).Text & ", "
End If
Next
End Sub
<asp:CheckBoxLi st id="cblPropType s" runat="server"
datavaluefield= "Class" datatextfield=" Class"
OnSelectedIndex Changed="Check_ Clicked"></asp:CheckBoxLis t>
Thanks in advance for any help!!
-Cabellm
listbox on it that are both databound to a database. I have been
researching all day and have found multiple answers for displaying the
results, but none of them work with databound checkbox lists. My
current code is:
Sub Check_Clicked(s ender as Object, e As EventArgs)
lblPropTypes.Te xt = "Selected Item(s):<br><br >"
Dim i As Integer
For i=0 To cblPropTypes.It ems.Count - 1
If cblPropTypes.It ems(i).Selected Then
lblPropTypes.Te xt += cblPropTypes.It ems(i).Text & ", "
End If
Next
End Sub
<asp:CheckBoxLi st id="cblPropType s" runat="server"
datavaluefield= "Class" datatextfield=" Class"
OnSelectedIndex Changed="Check_ Clicked"></asp:CheckBoxLis t>
Thanks in advance for any help!!
-Cabellm
Comment