I have this checkboxlist out side a Datalist below:-
<asp:checkboxli st id="chkList" AutoPostBack="T rue" Runat="server"
DataValueField= "ProductFeature ID"
DataTextField=" Feature"
OnSelectedIndex Changed="Check_ Clicked"></asp:checkboxlis t></
And the event that fires after when the checkBoxList is clicked
-------------------------------------------------------
Sub Check_Clicked(B yVal sender As Object, ByVal e As EventArgs) Handles
chkList.Selecte dIndexChanged
'print.Text = "Selected Item(s):<br><br >"
Dim i As Integer
For i = 0 To chkList.Items.C ount - 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?
------------------------------------------------
<a href='AddToCart .aspx?productID =<%#
DataBinder.Eval (Container.Data Item, "ProductID" ) & "&Features= " & P &
","
%>'>Add To Cart</a>
*** Sent via Developersdex http://www.developersdex.com ***