private void btnSave_Click(object sender, EventArgs e) { string[] productInfo = txtProductName.Tag.ToString().Split('-'); int productID = Convert.ToInt32(productInfo[0].ToString()); int productLabel = Convert.ToInt32(productInfo[1].ToString()); int pluNumber = Convert.ToInt32("0" + txtPlu.Text.Trim()); CCategoryManager oManager = new CCategoryManager(); CResult oResult = oManager.SaveProductPLU(productID, productLabel, pluNumber); if (Convert.ToInt32(oResult.Data) > -1) { lblSaveStatus.Text = "This PLU is already existed."; lblSaveStatus.ForeColor = Color.White; lblSaveStatus.Visible = true; } else { lblSaveStatus.Text = "This PLU has been saved successfully."; lblSaveStatus.Visible = true; lblSaveStatus.ForeColor = Color.White; } }