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 :-
Rajanikant HawaldarPosted Jun 23, 2020, 10:29 AM
Salman BegPosted Jun 23, 2020, 10:25 AM