protected void BtnDownLoadExcel_Click(object sender, EventArgs e) { token = new TokenClass(); logclass = new LogClass(); Inventario inventario = logclass.GetVariables(HdnIdInventario.Value); ExportarExcel(logclass.GetDetailInventory(HdnIdInventario.Value, token.TokenId), inventario.Name); Response.Redirect("~/View/Logistica/DetalleInventario?ID=" + HdnIdInventario.Value + "&TOKEN=" + token.TokenId); }