P
Patrick Olurotimi Ige
I have this checkboxlist out side a Datalist below:-
<asp:checkboxlist id="chkList" AutoPostBack="True" Runat="server"
DataValueField="ProductFeatureID"
DataTextField="Feature"
OnSelectedIndexChanged="Check_Clicked"></asp:checkboxlist></
And the event that fires after when the checkBoxList is clicked
-------------------------------------------------------
Sub Check_Clicked(ByVal sender As Object, ByVal e As EventArgs) Handles
chkList.SelectedIndexChanged
'print.Text = "Selected Item(s):<br><br>"
Dim i As Integer
For i = 0 To chkList.Items.Count - 1
If chkList.Items(i).Selected Then
P &= "_" & chkList.Items(i).Value
'Tested it here to print it to the screen
print.Text = P & "<br>"
End If
Next
End Sub
This is my link below in the DataList( What i want to get is the value
selected below which is ok but after selecting a checkbox i want to
append only the checbox value the user has selected but i noticed that
after the Check_Clicked fires i can't get the right values appended to
the link.
Any help please?
<asp:checkboxlist id="chkList" AutoPostBack="True" Runat="server"
DataValueField="ProductFeatureID"
DataTextField="Feature"
OnSelectedIndexChanged="Check_Clicked"></asp:checkboxlist></
And the event that fires after when the checkBoxList is clicked
-------------------------------------------------------
Sub Check_Clicked(ByVal sender As Object, ByVal e As EventArgs) Handles
chkList.SelectedIndexChanged
'print.Text = "Selected Item(s):<br><br>"
Dim i As Integer
For i = 0 To chkList.Items.Count - 1
If chkList.Items(i).Selected Then
P &= "_" & chkList.Items(i).Value
'Tested it here to print it to the screen
print.Text = P & "<br>"
End If
Next
End Sub
This is my link below in the DataList( What i want to get is the value
selected below which is ok but after selecting a checkbox i want to
append only the checbox value the user has selected but i noticed that
after the Check_Clicked fires i can't get the right values appended to
the link.
Any help please?