62,254
社区成员
发帖
与我相关
我的任务
分享
try
{
conn.Open();
string sou = "select * from art where content like '%" + TextBox1.Text + "%'";
SqlDataAdapter da = new SqlDataAdapter(sou, conn);
DataSet ds = new DataSet();
da.Fill(ds);
if (ds == null)
{
Response.Write("没有记录!");
}
else
{
this.sou.DataSource = ds;
this.sou.DataBind();
}
}
catch
{
}