J
JJ297
I am able to populate the checkboxlist but need some assistance in
coding my checkboxlist1_selectedIndexChanged code behind page.
Here's my stored procedure
CREATE Procedure GetClassID
@titleid int
AS
SELECT
classifications.[description], titleclassification.classificationid
FROM
classifications inner join titleclassification on
titleclassification.classificationid =
classifications.classificationid
where titleid=@titleid
GO
Here's the code behind that's not working, please help...
Protected Sub CheckBoxList1_SelectedIndexChanged(ByVal sender As
Object, ByVal e As System.EventArgs) Handles
CheckBoxList1.SelectedIndexChanged
Dim i As Integer
Dim chkbx As CheckBoxList
For i = 0 To chkbx.Items.Count - 1
Next
if chkbx.Items.SelectedValue then
CheckBoxList1.Items(.selectedvalue = True)
Else
CheckBoxList1.Items(.selectedvalue = False)
End If
CheckBoxList1.DataBind()
End Sub
coding my checkboxlist1_selectedIndexChanged code behind page.
Here's my stored procedure
CREATE Procedure GetClassID
@titleid int
AS
SELECT
classifications.[description], titleclassification.classificationid
FROM
classifications inner join titleclassification on
titleclassification.classificationid =
classifications.classificationid
where titleid=@titleid
GO
Here's the code behind that's not working, please help...
Protected Sub CheckBoxList1_SelectedIndexChanged(ByVal sender As
Object, ByVal e As System.EventArgs) Handles
CheckBoxList1.SelectedIndexChanged
Dim i As Integer
Dim chkbx As CheckBoxList
For i = 0 To chkbx.Items.Count - 1
Next
if chkbx.Items.SelectedValue then
CheckBoxList1.Items(.selectedvalue = True)
Else
CheckBoxList1.Items(.selectedvalue = False)
End If
CheckBoxList1.DataBind()
End Sub