Ejemplo n.º 1
0
 protected void rptProducts_ItemCommand(object source, RepeaterCommandEventArgs e)
 {
     if (Session["WishList"] != null && e.CommandName == "Remove")
     {
         CompareAndWish list = (CompareAndWish)Session["WishList"];
         HiddenField    hdf  = (HiddenField)e.Item.FindControl("hdfProductId");
         if (list != null)
         {
             list.Remove(ToSQL.SQLToInt(hdf.Value));
             LoadWishList();
         }
     }
 }
Ejemplo n.º 2
0
 protected void rptComapre_ItemCommand(object source, RepeaterCommandEventArgs e)
 {
     if (e.CommandName == "Remove" && Session["Compare"] != null)
     {
         CompareAndWish list = (CompareAndWish)Session["Compare"];
         if (list != null)
         {
             list.Remove(ToSQL.SQLToInt(e.CommandArgument));
             Session["Compare"] = list;
             LoadCompareList();
         }
     }
 }