// Handles removal of the selected product protected void RemoveProductButton_Click(object sender, EventArgs e) { BLProduct product = Session["Product"] as BLProduct; if (product.prodActive) { RemoveProductButton.CssClass = "btn btn-outline-danger"; RemoveProductButton.Text = "Inactive"; product.prodActive = false; } else { RemoveProductButton.CssClass = "btn btn-danger"; RemoveProductButton.Text = "Active"; product.prodActive = true; } Session["Product"] = product; BLProduct.toggleActive(product.prodNumber); }