Bonjour,
je cree des checkbox dynamiquement mais je n arrive pas a recuperer si elles sont cliquee, et ce a chaque clic sur l une d elle...
Qqun peut il m aider.....Merci
je fais pour l instant : (mais ca marche pas)
Dim ctmp As CheckBox
Dim tmp As String
For Each ctmp In Page.Controls
Dim c As CheckBox = CType(sender, CheckBox)
If c.Checked Then
strsql &= " LIKE '%" & c.ID.ToString & "%'"
If Left(c.ID.ToString, 3) = tmp Then
strsql &= " OR "
Else
strsql &= " AND "
End If
tmp = c.ID.ToString
End If
Next
If Len(strsql) > 5 Then
strsql = Left(strsql, Len(strsql) - 4)
End If