I have a form which allows the user to download a simple text file. They click on the download button and it brings up the "Save As" dialog. Once they save the file, I want them to be redirected to another page.
Here is the code I'm using:
I've tried switching around the .End and .Redirect statements. Either it redirects, but the file doesn't download, or it downloads but doesn't redirect. What am I missing?
Here is the code I'm using:
Code:
Response.ContentType = "text/plain"
Response.AppendHeader("Content-Disposition", "attachment; filename=Security.PCC")
Response.TransmitFile(PassGen.Path & "Security.pcc")
Response.End()
Response.Redirect("password.aspx?pw=" & password)
Comment