ArrayList arraySQl = new ArrayList();
string sql1 = "select * from homehold where [Code]='" + ddlownerID.SelectedValue + "'";
sql1 = "update homehold set mobile='" + TextBox1.Text + "'";
arraySQl.Add(sql1);
if (bc.ExecSQLTrans(arraySQl))
{
Response.Write("<script>alert('数据保存成功!');</script>");
}
else
{
Response.Write("<script>alert('数据保存失败!');</script>");
return;
我想更新一句,为什么更新全部了。。