protected void btnActiveInactive_Click(object sender, EventArgs e) { try { bizClient biz = new bizClient(); bool flag = false; if (this.btnActiveInactive.Text == "Inactivate") { flag = true; } if (biz.SetInactiveField(int.Parse(Request.QueryString["cid"]), flag) == true) { PopulateClientDetails(); } this.ucMessanger1.ProcessMessages(biz.MSGS, true); } catch (Exception ex) { bizLog.InsertExceptionLog(ex); Response.Redirect("~/ErrorPage.aspx", false); } }