private void DeleteOrderItems(int Id) { InvoiceData invoiceData = new InvoiceData(); bool result = invoiceData.DeleteBulkOrderItems(Id); if (result) { divDanger.Visible = false; divwarning.Visible = false; divSusccess.Visible = true; lblSuccess.Text = "Order Item Deleted Successfully"; pnlError.Update(); binddetails(); upMain.Update(); } }