protected void btnBatDelete_Click(object sender, EventArgs e) { string favIds = ReqParas["favid"]; FavoriteBll bll = new FavoriteBll(); bll.Delete(this.CurrentUser.UserId, favIds); SearPageInfo.PageIndex = 1; BindList(); }
protected void rpList_ItemCommand(object source, RepeaterCommandEventArgs e) { if (e.CommandName == "delete") { int favId = Convert.ToInt32(e.CommandArgument); FavoriteBll bll = new FavoriteBll(); bll.Delete(this.CurrentUser.UserId,favId); SearPageInfo.PageIndex = 1; BindList(); } }