概念是什么 @ 在选择此代码之前?
SqlDataSource2.SelectCommand = @"SELECT tblstore.storname,tblproduct.pid, tblproduct.pname, tblproduct.pprice, tblproduct.publisher, tblproduct.writer FROM tblproduct INNER JOIN tblstore ON tblproduct.storeid = tblstore.storeid WHERE tblproduct.pname LIKE @likeText";
SqlDataSource2.SelectParameters.Add("likeText", "%" + txtName.Text + "%");
答案 0 :(得分:1)