Example #1
0
        private void btnSave_Click(object sender, System.EventArgs e)
        {
            BrandTagInfo brandCategoryInfo = this.GetBrandCategoryInfo();

            if (!this.ValidationBrandCategory(brandCategoryInfo))
            {
                return;
            }
            if (CatalogHelper.AddBrandTag(brandCategoryInfo))
            {
                base.Response.Redirect(Globals.GetAdminAbsolutePath("/product/BrandType.aspx"), true);
                return;
            }
            this.ShowMsg("添加品牌标签失败", true);
            return;
        }
Example #2
0
        protected void btnAddBrandCategory_Click(object sender, System.EventArgs e)
        {
            string value = Globals.HtmlEncode(Globals.StripHtmlXmlTags(Globals.StripScriptTags(this.txtBrandName.Text.Trim())).Replace("\\", ""));

            if (string.IsNullOrEmpty(value))
            {
                this.ShowMsg("请填写品牌标签名称,品牌标签名称中不能包含HTML字符,脚本字符,以及\\", false);
                return;
            }
            BrandTagInfo brandCategoryInfo = this.GetBrandCategoryInfo();

            if (!this.ValidationBrandCategory(brandCategoryInfo))
            {
                return;
            }
            if (CatalogHelper.AddBrandTag(brandCategoryInfo))
            {
                this.ShowMsg("成功添加品牌标签", true);
                return;
            }
            this.ShowMsg("添加品牌标签失败", true);
            return;
        }