private DataTable loadEventsRPT() { DataTable dt = BLL.getFeaturedEventsData(); EventRPT.DataSource = dt; EventRPT.DataBind(); return(dt); }
private void bindtabledata() { //Populating a DataTable from database. DataTable dt = DAL.GetData(); EventRPT.DataSource = dt; EventRPT.DataBind(); }
private void bindtabledata() { EventsDAL DAL = new EventsDAL(); //Populating a DataTable from database. DataTable dt = DAL.GetApplicantsData(); EventRPT.DataSource = dt; EventRPT.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { if (!this.IsPostBack) { EventsBLL BLL = new EventsBLL(); //Populating a DataTable from database. string xmldt = client.GetData(); StringReader xr = new StringReader(xmldt); DataTable dt = new DataTable(); dt.ReadXml(xr); //DataTable dt = BLL.GetData(); EventRPT.DataSource = dt; EventRPT.DataBind(); } }