public void configRptBind() { try { List <ConfigurationModel> list = obj.getConfigurationList(0); if (list.Count > 0) { BindingClass.RepeaterViewBind(rptConfiguration, list); } else { BindingClass.ClearRepeaterView(rptConfiguration); BindingClass.CallScriptManager(this.Page, this.GetType(), "toastr.error('No Configuration panel Found!', 'N/A',{positionClass:'toast-bottom-right'});"); } } catch (Exception) { BindingClass.ExceptionAlertScriptManager(this.Page, this.GetType()); } }
public void bindRepeater() { try { List <ConfigurationModel> list = obj.getConfigurationList(-1); if (list.Count > 0) { rptReports.DataSource = list; rptReports.DataBind(); } else { BindingClass.ClearRepeaterView(rptReports); BindingClass.CallScriptManager(this.Page, this.GetType(), "toastr.error('No Report assigned to " + Session["DisplayName"] + "!', 'N/A',{positionClass:'toast-bottom-right'});"); } } catch (Exception) { BindingClass.ExceptionAlertScriptManager(this.Page, this.GetType()); } }