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(); } } }
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(); } } }