コード例 #1
0
 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();
 }
コード例 #2
0
 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();
     }
 }