protected void btnDelete_Click(object sender, EventArgs e) { int product = Convert.ToInt32(dropProduct.SelectedValue); int res = dbcon.deleteProduct(product); rowProduct.Visible = false; rowSubmit.Visible = false; lblSubmission.Visible = true; lblSubmission.Text = "Product is successfully deleted. \nResponse Code:" + (res == 1 ? "0200" : "0500"); }