private void BindGrid() { 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 { string doctorID = ""; int billStatus = 0; string fromDate = ""; string toDate = ""; if (extddlDoctor.Text != "NA" && extddlDoctor.Text != "") { doctorID = extddlDoctor.Text; } if (ddlBillStatus.SelectedValue != "0") { billStatus = Convert.ToInt32(ddlBillStatus.SelectedValue); } if (txtFromDate.Text != "") { fromDate = txtFromDate.Text; } if (txtToDate.Text != "") { toDate = txtToDate.Text; } _bill_Sys_ReportBO = new Bill_Sys_ReportBO(); grdBillSearch.DataSource = _bill_Sys_ReportBO.GET_DOCTOR_BILLS(doctorID, billStatus, fromDate, toDate, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID).Tables[0]; grdBillSearch.DataBind(); } 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()); } }