日期:2014-05-17 浏览次数:20737 次
protected void Button1_Click(object sender, EventArgs e)
{
string cx = "select * from shetuanxinxi where sno='" + TextBox1.Text + "'";
SqlDataSource1.SelectCommand = cx;
this.GridView1.EmptyDataText = "查询无结果,请重新输入查询条件!";
GridView1.DataSourceID = "SqlDataSource1";
GridView1.DataBind();
}