protected void btnaddgroup_Click(object sender, EventArgs e) { string str = Globals.HtmlEncode(this.txtaddgroupname.Text.Trim()); if (string.IsNullOrEmpty(str)) { this.ShowMsg("分组名称不允许为空!", false); } else { CustomGroupingInfo customGroupingInfo = new CustomGroupingInfo { GroupName = str }; string s = CustomGroupingHelper.AddCustomGrouping(customGroupingInfo); if (Globals.ToNum(s) > 0) { this.ShowMsg("添加分组成功!", true); this.BindData(); } else { this.ShowMsg("添加分组失败," + s, false); } } }
protected void btnaddgroup_Click(object sender, System.EventArgs e) { string text = Globals.HtmlEncode(this.txtaddgroupname.Text.Trim()); if (string.IsNullOrEmpty(text)) { this.ShowMsg("分组名称不允许为空!", false); return; } string text2 = CustomGroupingHelper.AddCustomGrouping(new CustomGroupingInfo { GroupName = text }); if (Globals.ToNum(text2) > 0) { this.ShowMsg("添加商品分组成功!", true); this.BindData(); return; } this.ShowMsg("添加分组失败," + text2, false); }