Exemple #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!this.Page.IsPostBack)
     {
         DataTable table = null;
         table = Consulta.BitacorasJuiciosExcel();
         if ((table == null) || (table.Rows.Count < 1))
         {
             base.Response.Write("NO EXISTEN REGISTROS");
         }
         else
         {
             this.Grilla.DataSource = table;
             this.Grilla.DataBind();
             this.Excel();
             base.Response.End();
         }
     }
 }