M
Mark B
I have a filter that finds relevant text in a Gridview. However when I click
Edit on the Gridview row, no rows appear at all.
Protected Sub Button5_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Button5.Click
'Find text
With SqlDataSource3
.FilterExpression = Nothing
.FilterExpression = "MyColumn1 LIKE '%{0}%'"
.FilterParameters.Clear()
.FilterParameters.Add("fp2", TextBox4.Text)
End With
End Sub
Any ideas?
It works fine when I don't use the LIKE keyword.
Edit on the Gridview row, no rows appear at all.
Protected Sub Button5_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Button5.Click
'Find text
With SqlDataSource3
.FilterExpression = Nothing
.FilterExpression = "MyColumn1 LIKE '%{0}%'"
.FilterParameters.Clear()
.FilterParameters.Add("fp2", TextBox4.Text)
End With
End Sub
Any ideas?
It works fine when I don't use the LIKE keyword.