.cs
string x = Request.QueryString["Name"] + "%";
con.Open();
SqlCommand scom = new SqlCommand();
scom.Connection = con;
scom.CommandText = "select Keyword from products where keyword NOT LIKE @x ";
// scom.CommandText = "select * from proper where @x notlike keyword";
scom.Parameters.AddWithValue("@x", x);
DataSet ds = new DataSet();
SqlDataAdapter dap = new SqlDataAdapter();
dap.SelectCommand = scom;
dap.Fill(ds);
GridView1.DataSource = ds;
GridView1.DataBind();

Manish Kumar ChoudharyRank #339 · 7.4K reputationPosted Mar 22, 2015, 11:15 PM EDT
scom.CommandText = select * from proper where keyword NOT Like @x
Krishna39 reputationPosted Mar 22, 2015, 11:39 PM EDT
Manish Kumar ChoudharyRank #339 · 7.4K reputationPosted Mar 22, 2015, 11:48 PM EDT
try this.
any keyword not start with x
string x = "%"+Request.QueryString["Name"];
Krishna39 reputationPosted Mar 23, 2015, 1:47 AM EDT
Manish Kumar ChoudharyRank #339 · 7.4K reputationPosted Mar 23, 2015, 1:51 AM EDT
Krishna39 reputationPosted Mar 23, 2015, 2:45 AM EDT