Beispiel #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     GridNoticias.DataSource = logica.ConsultaNoticias(0, 1, 1);
     GridNoticias.DataBind();
     dtAnuncios.DataSource = logica.ConsultaAnuncios();
     dtAnuncios.DataBind();
     dlEventos.DataSource = logica.ConsultaEventos(DateTime.Today, 0, 5, 0);
     dlEventos.DataBind();
 }
Beispiel #2
0
 protected void GridNoticias_PageIndexChanging(object sender, GridViewPageEventArgs e)
 {
     GridNoticias.PageIndex = e.NewPageIndex;
     GridNoticias.DataBind();
 }