Does that SQL statement return rows when you run it in the database? Also, I'd be careful of SQL injection attacks when passing values not through parameters.
Should your 'reptater' bind to a DataTable rather than a DataSet?
cmd = new SqlCommand("SELECT * FROM Thread WHERE (Delete_Status='No') AND (Thread_Location = @SearchTxt OR Thread_Title = @SearchTxt OR Thread_Description LIKE '%' + @SearchTxt + '%') ORDER BY ThreadID DESC ", con);
cmd.Parameters.Add("@SearchTxt", SqlDbType.VarChar);
cmd.Parameters["@SearchTxt"].Value = searchTB.Text;
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
da.Fill(ds);
reptater.DataSource = ds; //ds.Tables[0]; ?
reptater.DataBind();
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…