protected void Page_Load(object sender, EventArgs e) { 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 { if (!IsPostBack) { _BillingCompany = new Bill_Sys_BillingCompanyDetails_BO(); DataSet ds = new DataSet(); txtCompanyID.Text = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; ds = _BillingCompany.GetBillingCompanyInfo(txtCompanyID.Text); lbl_MRIFacilityName.Text = ds.Tables[0].Rows[0][1].ToString(); lbl_State.Text = ds.Tables[0].Rows[0][5].ToString(); lbl_City.Text = ds.Tables[0].Rows[0][3].ToString(); lbl_Zip.Text = ds.Tables[0].Rows[0][4].ToString(); lbl_Phone.Text = ds.Tables[0].Rows[0][6].ToString(); //lbl_Fax.Text = ds.Tables[0].Columns[3].ToString(); StartDate = Request.QueryString["StartDate"].ToString(); EndDate = Request.QueryString["EndDate"].ToString(); OfficeId = Request.QueryString["OfficeId"].ToString(); DocorId = Request.QueryString["DocorId"].ToString(); Status = Request.QueryString["Status"].ToString(); BindGrid(); } } 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); } #region "check version readonly or not" string app_status = ((Bill_Sys_BillingCompanyObject)Session["APPSTATUS"]).SZ_READ_ONLY.ToString(); if (app_status.Equals("True")) { Bill_Sys_ChangeVersion cv = new Bill_Sys_ChangeVersion(this.Page); cv.MakeReadOnlyPage("Bill_Sys_ProcedureReport.aspx"); } #endregion //Method End using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } }