My problem is that I'm doing a form, and I have a txt that is responsible for searching, but I have to put the manual data in the query to work, and what I want is to take the value of txt to search from here: I leave the code in summary View
<td>
<asp:TextBox CssClass="form-control" ID="txt_clasif" runat="server" ReadOnly="false" Text=""></asp:TextBox>
</td>
Query:
Dim buscarclasif As String = txt_clasif.Text
sqlQuery = sqlQuery & " and tc.nombre_clasif like '%%'"
Inside the percents I put my values but I do not know how to put what goes in my search text box:
dbComm = New MySqlCommand(sqlQuery, dbConn)
dbComm.Parameters.AddWithValue("?nombre_clasif", buscarclasif)