/// <summary> /// repeater的操作项的事件 /// </summary> /// <param name="source"></param> /// <param name="e"></param> protected void repList_ItemCommand(object source, RepeaterCommandEventArgs e) { var rult = e.CommandName; int id = Convert.ToInt32(e.CommandArgument); if (rult == "Del") { int n = bll.DelNotice(id); if (n > 0) { Response.Write("<script>alert('删除成功!');window.location.href='InformList.aspx'</script>"); } } else { Response.Redirect("InformEdit.aspx?Id=" + id + ""); } }