SqlCommand test = new SqlCommand("select count(*) from 管理员 where 账号=Textbox1.Text", myConn);
 int Num_count = (int)test.ExecuteScalar();
代码如上,运行能通过,但应用的时候就出问题了,问题如下:
无法绑定由多个部分组成的标识符 "Textbox1.Text"!
会的帮帮忙,在线等,结贴率100%