protected void btnSave_Click(object sender, EventArgs e) { int num = Globals.SafeInt(this.Id, 0); Maticsoft.BLL.SNS.Products products = new Maticsoft.BLL.SNS.Products(); Maticsoft.Model.SNS.Products model = new Maticsoft.Model.SNS.Products(); model = products.GetModel((long) num); if (model != null) { model.Color = this.hidValue.Value; products.Update(model); this.lblTip.Visible = true; LogHelp.AddUserLog(base.CurrentUser.UserName, base.CurrentUser.UserType, "更新商品(ProductId=" + num + ")的颜色成功", this); } this.BindColor(); }