protected void rptList_ItemCommand(object source, RepeaterCommandEventArgs e) { string code = e.CommandArgument.ToString();; if (e.CommandName == "Edit") { Response.Redirect("TimeEdit.aspx?code=" + code); } else if (e.CommandName == "Delete") { if (WebBLL.DelActivity(new Guid(code)) == true) { ShowAlert("删除成功"); } else { ShowAlert("删除失败"); } BindGrid(); } else if (e.CommandName == "Connect") { Response.Redirect("ConnectPro.aspx?code=" + code); } else if (e.CommandName == "Reset") { if (WebBLL.ResetActivity(new Guid(code)) == true) { ShowAlert("重置成功"); } else { ShowAlert("重置失败"); } } }