Example #1
0
        protected void grdBrandCategriesList_RowDeleting(object sender, System.Web.UI.WebControls.GridViewDeleteEventArgs e)
        {
            int brandId = (int)this.grdBrandCategriesList.DataKeys[e.RowIndex].Value;

            if (CatalogHelper.BrandTagHaveBrand(brandId))
            {
                this.ShowMsg("选择的品牌标签下还有品牌关联,删除失败", false);
                return;
            }
            if (CatalogHelper.DeleteBrandTags(brandId))
            {
                this.ShowMsg("成功删除品牌标签", true);
            }
            else
            {
                this.ShowMsg("删除品牌标签失败", false);
            }
            this.BindBrandTags();
        }