private void LoadHotArticle() { try { DataTable mTable = new DataTable(); DAArticle oData = new DAArticle(); mTable.Load(oData.USP_Article_Client_GetHot()); //if (mTable.Rows.Count > 0) //{ // imgLink.ImageUrl = mTable.Rows[0]["ImgLink"].ToString(); // imgLink.AlternateText = mTable.Rows[0]["Title"].ToString(); // lblTitle.Text = mTable.Rows[0]["Title"].ToString(); // lblDescription.Text = mTable.Rows[0]["Description"].ToString(); // mTable.Rows.RemoveAt(0); //} // Load tin khác rptHotNews.DataSource = mTable; rptHotNews.DataBind(); } catch { } }
private void LoadHotArticle() { try { DataTable mTable = new DataTable(); DAArticle oData = new DAArticle(); mTable.Load(oData.USP_Article_Client_GetHot()); // Load tin khác rptHotNews.DataSource = mTable; rptHotNews.DataBind(); } catch { } }