我有一个删除代码现在有错误请大家帮助谢谢!
string strSQL="delete from admin where name='"+this.textBox1.Text.Trim()+"'";this.sqlDeleteCommand1.CommandText=strSQL;
this.sqlDeleteCommand1.Connection.Open();
this.sqlDeleteCommand1.ExecuteNonQuery();
this.dataSet11.Clear();
this.sqlDataAdapter1.Fill(this.dataSet11);
this.sqlDeleteCommand1.Connection.Close();