when the user clicks on more than one checkbox, I am trying to create the following string for yx:
Receiver like "1" or reciver like "2" or receiver like "3", when I click three check boxes on the grid,
the code below unfortunately doesn't work, can you please help me with the proper code.
Dim vc1 As Integer
For Each row As GridViewRow In GridView2.Rows
'Find checkbox in the row
Dim chb As CheckBox = DirectCast(row.FindControl("CheckBox1"), CheckBox)
'if checkbox is found and is checked then add the id to string
If chb IsNot Nothing AndAlso chb.Checked Then
If vc1 > 0 Then
' yx = "Or re Like & "" & row.Cells(1).Text & """
yx &= ListBox1.SelectedValue.ToString Like "" & row.Cells(1).Text & ""
yx = "" & row.Cells(1).Text & ""
vc1 = vc1 + 1