انا عاندي مشكله ايضا في كود السيرش ولا اعلم ما هيا المشكله
هذا هوا الكود ارجو التصحيح
Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click
con.Open()
cmd.Connection = con
cmd.CommandText = "select*from test where firstname='" + TextBox4.Text + "'"
DT.SelectCommand = cmd
S.Clear()
DT.Fill(S)
GridView.DataSource = S.Tables(0)
DataBind()
con.Close()