protected void EnterItem_Click(object sender, EventArgs e) { if (TxtItemName.Text == "" || TxtPrice.Text == "" || TxtPrice.Text == "" || TxtDescriptionItem.Text == "" || TxtCategoryItem.Text == "") { return; } MultiView2.ActiveViewIndex = 1; decimal parsedValue; if (!decimal.TryParse(TxtPrice.Text, out parsedValue)) { return; } string enterItem = Operations.EnterItem(TxtItemName.Text, decimal.Parse(TxtPrice.Text), FileUploadImage.ToString(), TxtDescriptionItem.Text, int.Parse(TxtCategoryItem.Text)); if (enterItem == null) { LblItemName.Text = "Item Exists"; LblItemPrice.Text = "Item Exists"; LblItemPrice.Text = "Item Exists"; LblDescriptionItem.Text = "Item Exists"; LblCatgoryItem.Text = "Item Exists"; } else { LblItemName.Text = TxtItemName.Text; LblItemPrice.Text = TxtPrice.Text; LblItemPrice.Text = TxtPrice.Text; LblDescriptionItem.Text = TxtDescriptionItem.Text; LblCatgoryItem.Text = TxtCategoryItem.Text; } }