public void LoadResources() { try { Session["BookingResourcesList"] = BLLMeetingResources.GetResourcesList(null); this.grdResources.DataSource = (List <ATTMeetingResources>)Session["BookingResourcesList"]; this.grdResources.DataBind(); } catch (Exception ex) { this.lblStatusMessageTitle.Text = "Error Status"; this.lblStatusMessage.Text = ex.Message; this.programmaticModalPopup.Show(); } }
public void LoadResources() { try { Session["BookingResourcesList"] = BLLMeetingResources.GetResourcesList(null); if (((List <ATTMeetingResources>)Session["BookingResourcesList"]).Count > 0) { this.grdResources.DataSource = (List <ATTMeetingResources>)Session["BookingResourcesList"]; this.grdResources.DataBind(); } else { this.lblStatusMessageTitle.Text = "Error Status"; this.lblStatusMessage.Text = "Resources Couldn't be loaded"; this.programmaticModalPopup.Show(); } } catch (Exception ex) { throw(ex); } }