473,320 Members | 1,848 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Pop up download box

Hi, I am trying to create a popup progress box for a downloading file and
then do a page redirect/transfer on completion of the download and also to
confirm completion of the download, much like downloads on the microsoft
site.

The download is protected by using a naming it as an aspx file and then
streamed to the user using the reponse object

Response.AddHeader("Content-Disposition", "attachment; filename=" &
Replace(myFile.Name, ".aspx", ""))
Response.AddHeader("Content-Length", myFile.Length.ToString())
Response.ContentType = "application/octet-stream"
Response.WriteFile(myFile.FullName)
Response.End()

Can anyone pls point me in the correct direction.

Thanks

Steve
Nov 18 '05 #1
2 1573
What exactly is the problem you are having?
"Steve Lloyd" <Re*************@laxeyRemovepartners.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hi, I am trying to create a popup progress box for a downloading file and then do a page redirect/transfer on completion of the download and also to
confirm completion of the download, much like downloads on the microsoft
site.

The download is protected by using a naming it as an aspx file and then
streamed to the user using the reponse object

Response.AddHeader("Content-Disposition", "attachment; filename=" &
Replace(myFile.Name, ".aspx", ""))
Response.AddHeader("Content-Length", myFile.Length.ToString())
Response.ContentType = "application/octet-stream"
Response.WriteFile(myFile.FullName)
Response.End()

Can anyone pls point me in the correct direction.

Thanks

Steve

Nov 18 '05 #2
good question... i didn't put that too well.

After is do the response.writefile and the file has finished downloading i
want to redirect to another page. Also, I would like to use customised
progress screen for the download. Is this possible?

Thanks, I hope it makes more sense this time.

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:e2*************@TK2MSFTNGP12.phx.gbl...
What exactly is the problem you are having?
"Steve Lloyd" <Re*************@laxeyRemovepartners.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hi, I am trying to create a popup progress box for a downloading file

and
then do a page redirect/transfer on completion of the download and also to confirm completion of the download, much like downloads on the microsoft
site.

The download is protected by using a naming it as an aspx file and then
streamed to the user using the reponse object

Response.AddHeader("Content-Disposition", "attachment; filename=" &
Replace(myFile.Name, ".aspx", ""))
Response.AddHeader("Content-Length", myFile.Length.ToString())
Response.ContentType = "application/octet-stream"
Response.WriteFile(myFile.FullName)
Response.End()

Can anyone pls point me in the correct direction.

Thanks

Steve


Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: chon | last post by:
I have an ASP page that is sent a file location as a parameter. It opens this file, loads the ADODB.Stream object and does a binary write to the page forcing the download dialog to appear. This...
0
by: jmd | last post by:
Hello. I want to write a C# program that does completely automatically what, until now, I do manually, witch is describe below : 1. I launch IE (6) 2. I browse to my desired download page, say...
3
by: Nathan Sokalski | last post by:
I have a webform that contains a button which I want to do three things: 1. Delete a record from a database 2. Let the user download a text file that is generated 3. Refresh the page to show...
18
by: jmd | last post by:
Hello, I posted the following in the C# forum but without one answer. But perhaps now in vb.net someone has some guidelines ! This is my question : I want to write a vb.net program that does...
16
by: matt | last post by:
I have used some free code for listing files for download, but I want to send an email to the administrator when the file has been downloaded. I have got some code in here that does it, but it will...
1
by: JayLembeck | last post by:
Over 50,000 Free Ringtone. Get the Latest Ringtone. Download now- Fast, Free and Easy. Get your FREE surprise RINGTONE now! http://seekoutfast.info/free-ringtone/ free ringtone free ringtone new...
5
by: Khafancoder | last post by:
Hi guys, i am building a FileSharing website, i wanna allow users to be able using download managers such as DAP to download files from webserver but don't allow them to retrive files url......
1
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.