private void LoadData() { 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()); } DataSet ds_report_info = new DataSet(); objOTPT = new OTPT(); try { ds_report_info = objOTPT.GET_Report_Information_OTPT(txtCaseID.Text, txtCompanyID.Text); if (ds_report_info.Tables.Count > 0) { if (ds_report_info.Tables[0].Rows.Count > 0) { if (ds_report_info.Tables[0].Rows[0].ToString() != "" && ds_report_info.Tables[0].Rows[0].ToString() != null) { if (ds_report_info.Tables[0].Rows[0]["BT_OCCUPATIOANL_THERP_REPORT"].ToString().Trim() == "1") { chkOCCUPATIONAL.Checked = true; } else if (ds_report_info.Tables[0].Rows[0]["BT_OCCUPATIOANL_THERP_REPORT"].ToString().Trim() == "0") { chkOCCUPATIONAL.Checked = false; } if (ds_report_info.Tables[0].Rows[0]["BT_PHYSICAL_THERP_REPORT"].ToString().Trim() == "1") { chkPHYSICAL.Checked = true; } else if (ds_report_info.Tables[0].Rows[0]["BT_PHYSICAL_THERP_REPORT"].ToString().Trim() == "0") { chkPHYSICAL.Checked = false; } if (ds_report_info.Tables[0].Rows[0]["BT_48HR_INI_REPORT"].ToString().Trim() == "1") { chk48Hour.Checked = true; } else if (ds_report_info.Tables[0].Rows[0]["BT_48HR_INI_REPORT"].ToString().Trim() == "0") { chk48Hour.Checked = false; } if (ds_report_info.Tables[0].Rows[0]["BT_15DAY_INI_REPORT"].ToString().Trim() == "1") { chk15Day.Checked = true; } else if (ds_report_info.Tables[0].Rows[0]["BT_15DAY_INI_REPORT"].ToString().Trim() == "0") { chk15Day.Checked = false; } if (ds_report_info.Tables[0].Rows[0]["BT_90DAY_PRO_REPORT"].ToString().Trim() == "1") { chk90Day.Checked = true; } else if (ds_report_info.Tables[0].Rows[0]["BT_90DAY_PRO_REPORT"].ToString().Trim() == "0") { chk90Day.Checked = false; } if (ds_report_info.Tables[0].Rows[0]["BT_PPO"].ToString().Trim() == "1") { rdlstPPO.SelectedIndex = 0; } else if (ds_report_info.Tables[0].Rows[0]["BT_PPO"].ToString().Trim() == "0") { rdlstPPO.SelectedIndex = 1; } else if (ds_report_info.Tables[0].Rows[0]["BT_PPO"].ToString().Trim() == "2") { rdlstPPO.SelectedIndex = 2; } } } } } 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()); } }