I am using this code to download a file
then, I want to redirect the user to a new page, with the confirmation of the download
but it won't redirect him.
See attachment for details
Visual Basic:
Response.ContentType = "application/zip"
name = DownloadPath.Substring(DownloadPath.LastIndexOf("/") + 1, DownloadPath.LastIndexOf(".") - DownloadPath.LastIndexOf("/") - 1)
extension = DownloadPath.Substring(DownloadPath.LastIndexOf(".") + 1, DownloadPath.Length - DownloadPath.LastIndexOf(".") - 1)
Response.AppendHeader("Content-Disposition", "attachment; filename=" & name & "." & extension)
Response.WriteFile(DownloadPath)
Response.Flush()
then, I want to redirect the user to a new page, with the confirmation of the download
Visual Basic:
Response.Redirect("done.aspx")
but it won't redirect him.
See attachment for details
Last edited: