text box is not able to show the result in grid view, can you please help me?
on click text box code :-
protected void TextBox1_TextChanged(object sender, EventArgs e)
{
con = new SqlConnection(connectionstring);
con.Open();
adapt = new SqlDataAdapter("select * from table where product like '" + TextBox1.Text + "%'", con);
dtsdf = new DataTable();
adapt.Fill(dtsdf);
gvContact1.DataSource = dtsdf;
con.Close();
}
Search box :-

Salman BegRank #284 · 8.8K reputationPosted Jun 23, 2020, 6:25 AM EDT
Rajanikant HawaldarRank #110 · 20.4K reputationPosted Jun 23, 2020, 6:29 AM EDT