protected void btnAdd_Click(object sender, EventArgs e) { try { ProductVariantAttribute productVariantAttribute = ProductAttributeManager.GetProductVariantAttributeById(this.ProductVariantAttributeId); if (productVariantAttribute != null) { ProductVariantAttributeValue productVariantAttributeValue = ProductAttributeManager.InsertProductVariantAttributeValue(productVariantAttribute.ProductVariantAttributeId, txtNewName.Text, txtNewPriceAdjustment.Value, txtNewWeightAdjustment.Value, cbNewIsPreSelected.Checked, txtNewDisplayOrder.Value); SaveLocalizableContent(productVariantAttributeValue); BindData(); txtNewName.Text = string.Empty; txtNewPriceAdjustment.Value = 0; txtNewWeightAdjustment.Value = 0; txtNewDisplayOrder.Value = 1; } } catch (Exception exc) { ProcessException(exc); } }