protected void EGV_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName == "DeleteMsg") { msgBll.DelByIDS(e.CommandArgument.ToString(), buser.GetLogin().UserID); } if (e.CommandName == "ReadMsg") { Response.Redirect("MessageRead.aspx?id=" + e.CommandArgument.ToString()); } MyBind(); }
protected void batDelBtn_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(Request.Form["idChk"])) { Page.ClientScript.RegisterStartupScript(this.GetType(), "", "alert('请先选择需要操作的邮件!!!');", true); } else { msgBll.DelByIDS(Request.Form["idChk"], buser.GetLogin().UserID); Page.ClientScript.RegisterStartupScript(this.GetType(), "", "alert('操作成功!!');", true); DataBind(); } }
public int Message_Del(string ids) { msgBll.DelByIDS(ids, mu.UserID); return(Success); }