I would like to select multiple rows in a grid and concatenate my query with the "or" statement, however the code below doesn't work, any ideas what's is wrong with it?
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 = yx Or ListBox1.SelectedValue.ToString ****Error Line
yx = "" & row.Cells(1).Text & ""
vc1 = vc1 + 1
View Complete Post