[求助]显示和文本框输入内容相符的数据
string conn = "server = localhost;integrated security=sspi;database=LMS";
string commandString = "SELECT * FROM Borrow_info WHERE 借阅证号='" + TextBox1.Text.ToString() + "'";
SqlDataAdapter DataAdapter = new SqlDataAdapter(commandString, strconn);
DataSet myDataSet = new DataSet();
//填充DataSet对象
DataAdapter.Fill(myDataSet);
GridView1.DataSource = myDataSet;
GridView1.DataBind();
要是我把第二句换成string commandString = "SELECT * FROM Borrow_info ";就会所有记录都显示
现在就什么记录都不显示了.应该是第二句错了,请帮帮忙啊!