protected void BtnGenerar_Click(object sender, EventArgs e) { try { DataDataContext ctx = new DataDataContext(); List<T> acta = new List<T>(); Session["ListActas"] = ctx.Sp_InformeDeActasGestores(DateTime.Parse(txtFechaInicial.Text), DateTime.Parse(TxtFechaFinal.Text), Usuario.username).ToList();; Session["Fecha"] = " " + txtFechaInicial.Text + " - " + TxtFechaFinal.Text; lblActas.Visible = true; Response.Redirect("Exportar.aspx",false); } catch (Exception ex) { Log.EscribirError(ex); } }