protected void btnPaidAmount_Click(object sender, EventArgs e) { GoDine a = new GoDine(); try { decimal amount = Convert.ToDecimal(tbPaidAmount.Text); string company = ddPaidAmount.SelectedValue; string concept = tbPaidAmountConcept.Text; if (a.Pay_Amount_to_Company(amount, company, concept, 1) == 0) { lblPaidAmount.Text = "OK -> " + company + " receives " + amount.ToString(); tbPaidAmount.Text = ""; } else { lblPaidAmount.Text = "Error -> Company " + company + " was not found"; }; }catch{ lblPaidAmount.Text = "Error -> Input value must be a number"; } }