protected void btnCloseContract_Click(object sender, EventArgs e) { try { contractProvider.CloseContract(lblContractNo.Text); btnVoid.Enabled = false; btnCloseContract.Enabled = false; WebFormHelper.SetLabelTextWithCssClass( lblMessage, @"Contract <b> " + lblContractNo.Text + "</b> has been processed as CLOSED", LabelStyleNames.AlternateMessage); mvwForm.SetActiveView(viwRead); } catch (Exception ex) { mvwForm.SetActiveView(viwRead); WebFormHelper.SetLabelTextWithCssClass(lblMessage, ex.Message, LabelStyleNames.ErrorMessage); } }