protected void BtnCancelReq_Click(object sender, EventArgs e) { int aVRId = Utility.Utility.GetValidPrimaryKeyInt(LblRequestID.Text); if (InventoryLogic.CancelAdjustmentVoucherRequest(aVRId)) { statusMessage.ForeColor = Color.Green; statusMessage.Text = "Inventory Adjustment Voucher Request ID: " + aVRId.ToString() + " has been cancelled."; } else { statusMessage.ForeColor = Color.Red; statusMessage.Text = "Inventory Adjustment Voucher Request ID: " + aVRId.ToString() + " cannot be cancelled."; } Response.Redirect("~/StoreClerk/ViewAdjustmentVoucherDetails.aspx"); }