protected void btnUpdate_Click(object sender, EventArgs e) { //Logging Start string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url); using (Utils utility = new Utils()) { utility.MethodStart(id, System.Reflection.MethodBase.GetCurrentMethod()); } try { objBillingCompanyDetails = new Bill_Sys_BillingCompanyDetails_BO(); ArrayList arrSelect = new ArrayList(); arrSelect.Add(txtName.Text); arrSelect.Add(txtAddress.Text); arrSelect.Add(txtCity.Text); arrSelect.Add(extddlOfficeState.Selected_Text); arrSelect.Add(extddlOfficeState.Text); arrSelect.Add(txtZip.Text); arrSelect.Add(txtPhone.Text); arrSelect.Add(txtFax.Text); arrSelect.Add(txtCompanyID.Text); arrSelect.Add(txtID.Text); arrSelect.Add("UPDATE"); int icnt = objBillingCompanyDetails.SaveUpdateJFKBilligCompany(arrSelect); btnUpdate.Enabled = false; if (icnt > 0) { usrMessage.PutMessage("record updated successfully"); usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_UserMessage); usrMessage.Show(); } BindData(); clear(); } catch (Exception ex) { Elmah.ErrorSignal.FromCurrentContext().Raise(ex); using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } string str2 = "Error Request=" + id + ".Please share with Technical support."; base.Response.Redirect("../Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2); } //Method End using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } }