Exemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     //This is a sample checkin to GITHUB
     currentDate.Text = DateTime.Now.ToShortDateString();
     WatchOutNews _watchOut = new WatchOutNews();
     List<WatchOutNews> listWatchOut = new List<WatchOutNews>();
     listWatchOut = _watchOut.GetWatchOutNews();
     watchOutRepeater.DataSource = listWatchOut;
     watchOutRepeater.DataBind();
 }
Exemplo n.º 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     WatchOutNews _watchOut = new WatchOutNews();
     List<WatchOutNews> listWatchOut = new List<WatchOutNews>();
     listWatchOut = _watchOut.GetWatchOutNews();
     //Remove all other News Wire data above 4 records.
     //TO DO : Try to configure the number of records to display in web.config
     if (listWatchOut.Count > 4)
         listWatchOut.RemoveRange(4, listWatchOut.Count - 4);
     watchOutRepeater.DataSource = listWatchOut;
     watchOutRepeater.DataBind();
 }