string s = Request.QueryString["serc"]; SqlDataAdapter ad = new SqlDataAdapter("SELECT product_tbl.pname, product_tbl.path, product_tbl.price, product_tbl.cat, product_detail.product_info FROM product_tbl INNER JOIN product_detail ON product_tbl.pro_id = product_detail.pro_id where product_tbl.pname like '%" + s + "%'", con); DataSet ds = new DataSet(); con.Open(); ad.Fill(ds); con.Close(); GridView1.DataSource = ds; GridView1.DataBind();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)