高分求解,无法绑定由多个部分组成的标识符!

public SqlDataReader reDr(string str)
{
SqlConnection con = GetCon();
con.Open();
SqlCommand com=new SqlCommand(str,con);
SqlDataReader dr = com.ExecuteReader(CommandBehavior.CloseConnection);
return dr;

}

其中SqlDataReader dr = com.ExecuteReader(CommandBehavior.CloseConnection);
显示 $exception {"无法绑定由多个部分组成的标识符 \"System.Web.UI.WebControls.TextBox\"。\r\n无法绑定由多个部分组成的标识符 \"System.Web.UI.WebControls.TextBox\"。"} System.Exception {System.Data.SqlClient.SqlException}

请帮忙解决一下.
11

第1个回答  2008-11-16
str 先把这个字符串的值发上来.
第2个回答  2008-11-16
是你的SQL语句写的有问题,把你传的str贴上来看看就知道了本回答被提问者采纳
相似回答