private void GridDataBind() { try { ApplicationResult objResult = new ApplicationResult(); StatusBL objStatusBl = new StatusBL(); objResult = objStatusBl.Status_SelectAll(Convert.ToInt32(Session[ApplicationSession.TRUSTID])); if (objResult != null) { if (objResult.resultDT.Rows.Count > 0) { gvStatus.DataSource = objResult.resultDT; gvStatus.DataBind(); PanelGrid_VisibilityMode(1); } else { PanelGrid_VisibilityMode(2); } } } catch (Exception ex) { logger.Error("Error", ex); ClientScript.RegisterStartupScript(typeof(Page), "MessagePopUp", "<script>alert('Oops! There is some technical issue. Please Contact to your administrator.');</script>"); } }
public void getStatusName() { ApplicationResult objResult = new ApplicationResult(); Controls objControls = new Controls(); StatusBL objStatusBl = new StatusBL(); objResult = objStatusBl.Status_SelectAll(Convert.ToInt32(Session[ApplicationSession.TRUSTID])); if (objResult != null) { objControls.BindDropDown_ListBox(objResult.resultDT, ddlStatus, "StatusName", "StatusMasterID"); if (objResult.resultDT.Rows.Count > 0) { } ddlStatus.Items.Insert(0, new System.Web.UI.WebControls.ListItem("--Select--", "")); } }
private void BindgvStatus() { try { StatusBL objReceptionBl = new StatusBL(); var objResult = objReceptionBl.Status_SelectAll(); if (objResult != null) { gvStatus.DataSource = objResult.ResultDt; gvStatus.DataBind(); PanelVisibilityMode(true, false); } } catch (Exception ex) { throw ex; } }
private void BindStatus() { try { StatusBL objStatusBL = new StatusBL(); ApplicationResult objResults = new ApplicationResult(); Controls objControls = new Controls(); objResults = objStatusBL.Status_SelectAll(Convert.ToInt32(Session[ApplicationSession.TRUSTID])); if (objResults != null) { objControls.BindDropDown_ListBox(objResults.resultDT, ddlStatus, "StatusName", "StatusMasterID"); if (objResults.resultDT.Rows.Count > 0) { } ddlStatus.Items.Insert(0, new ListItem("-Select-", "")); } } catch (Exception ex) { logger.Error("Error", ex); ClientScript.RegisterStartupScript(typeof(Page), "MessagePopUp", "<script>alert('Oops! There is some technical issue. Please Contact to your administrator.');</script>"); } }