//置为正常 protected void btnNormal_Click(object sender, EventArgs e) { B_User bll = new B_User(); for (int i = 0; i <= Egv.Rows.Count - 1; i++) { CheckBox cbox = (CheckBox)Egv.Rows[i].FindControl("chkSel"); if (cbox.Checked == true) { bll.UpUserUnLock(DataConverter.CLng(Egv.DataKeys[i].Value)); } } Bind(); }