Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

506
Vistas
In Chrome, files cannot be downloaded if previous pop up window is not closed

In .aspx file:

<a href='#' onclick='download(\"" + fileID + "\");return false;'>Download</a>

In .aspx.vb file:

function downloadFile(inFileID) {
     window.open('../DownloadFile.ashx?id=' + fileID, 'file', 'width=600,height=800').focus()
}

In .ashx.vb file:

context.Response.AddHeader("content-disposition", String.Format("attachment;filename={0}", fileName))
context.Response.BinaryWrite(fileContent)

The downloaded file is shown at bottom of Chrome.

The situation: If the pop up window is not closed manually and then I click to download file again (no matter the same or different file), the code executed successfully without error but no file will be downloaded.

It is okay to download again if the pop up window is closed first.

How can I successfully download file again even the pop up window is not closed?

I planned to close pop up window through coding. However, the downloaded file list is shown at the bottom of pop up window. If it is closed, then I cannot view the files directly

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda