Hi I have a form which populates a TextBox I want to use the textBox.text to then load a gridView with the results
something like
Private Sub TextBoxId_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBoxIdSearchExist.TextChanged
Dim cmd As New SqlCommand("select * from pay Where t_id='" + tId.Text + "'"
Try
conn.Open()
da.Fill(ds, "List")
Dim ds As DataSet = GetData(queryString)
If (ds.Tables.Count > 0) Then
AuthorsGridView.DataSource = ds
AuthorsGridView.DataBind()
Else
Message.Text = "Unable to connect to the database."
End If
End Sub
any ideas
thanks
M