public void load_news() { newsBO n_bo = new newsBO(); newsBAL n_bal = new newsBAL(); try { DataSet ds = n_bal.news_top3_BAL_view(); news.DataSource = ds; news.DataBind(); } catch (Exception ex) { ErrorReportBAL error = new ErrorReportBAL(); error.SendErrorReport("UserProfleHome.aspx", ex.ToString()); Response.Write("<script>alert('Some Error Occured \n Sorry for inconvenience');</script>"); } }
protected void loadNews() { newsBAL news_bal = new newsBAL(); newsBO news_bo = new newsBO(); try { DataSet ds = news_bal.news_DAL_viewALL(); newsLoad.DataSource = ds; newsLoad.DataBind(); } catch (Exception ex) { ErrorReportBAL error = new ErrorReportBAL(); error.SendErrorReport("News.aspx", ex.ToString()); Response.Write("<script>alert('Some Error Occured \n Sorry for inconvenience');</script>"); } }
protected void displaynewsByID(int NewsID) { newsBAL news_bal = new newsBAL(); newsBO news_bo = new newsBO(); news_bo.news_id = NewsID; try { DataTable dt = news_bal.news_DAL_view_id(news_bo); newsLoad.DataSource = dt; newsLoad.DataBind(); } catch (Exception ex) { ErrorReportBAL error = new ErrorReportBAL(); error.SendErrorReport("NewsView.aspx", ex.ToString()); Response.Write("<script>alert('Some Error Occured \n Sorry for inconvenience');</script>"); } }