protected void gv_Result_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName.Equals("Del")) { string id = e.CommandArgument.ToString(); string result = StudentBusiness.deleteStudent(Int32.Parse(id)); if (!result.Equals("ok")) { ScriptManager.RegisterStartupScript(UpdatePanel1, this.GetType(), "alter", "alert('删除失败,请重新再试!')", true); return; } LogInfoBusiness.AddLogInfo(Convert.ToInt32(log_userid), DateTime.Now, Convert.ToInt32(log_usertype), log_username, 3, "在校本科生信息", log_ip, log_account);//删除添加日志 操作类型->3 RefreshView(0); } }