473,938 Members | 16,106 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.AddHea der("Content-Disposition", "attachment ; filename=" &
Replace(myFile. Name, ".aspx", ""))
Response.AddHea der("Content-Length", myFile.Length.T oString())
Response.Conten tType = "applicatio n/octet-stream"
Response.WriteF ile(myFile.Full Name)
Response.End()

Can anyone pls point me in the correct direction.

Thanks

Steve
Nov 18 '05 #1
2 1592
What exactly is the problem you are having?
"Steve Lloyd" <Re************ *@laxeyRemovepa rtners.com> wrote in message
news:%2******** ********@TK2MSF TNGP11.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.AddHea der("Content-Disposition", "attachment ; filename=" &
Replace(myFile. Name, ".aspx", ""))
Response.AddHea der("Content-Length", myFile.Length.T oString())
Response.Conten tType = "applicatio n/octet-stream"
Response.WriteF ile(myFile.Full Name)
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.writef ile 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.ne t> wrote in message
news:e2******** *****@TK2MSFTNG P12.phx.gbl...
What exactly is the problem you are having?
"Steve Lloyd" <Re************ *@laxeyRemovepa rtners.com> wrote in message
news:%2******** ********@TK2MSF TNGP11.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.AddHea der("Content-Disposition", "attachment ; filename=" &
Replace(myFile. Name, ".aspx", ""))
Response.AddHea der("Content-Length", myFile.Length.T oString())
Response.Conten tType = "applicatio n/octet-stream"
Response.WriteF ile(myFile.Full Name)
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
8548
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 all works fine. If the user selects "Open" or "Cancel", the window closes, which is the desired behavior. If they select "Save", the location dialog shows up, they save the file and the window remains open. I've tried a number of things to get...
0
2590
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 http://www.site.com/download This download page contains some textboxes, checkboxes, radiobuttons, a DOWNLOAD BUTTON and text 3. I check some checkboxes, select some radiobuttons, enter text in some textboxes and click on the download button
3
1649
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 that the record was deleted I am able to do any of these things separately with no trouble. The problem occurs when I try to offer a download AND call my refresh method. When I try to do a download and call my refresh method, only the download is...
18
16416
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 completely automatically what, until now, I do manually, witch is describe below : 1. I launch IE (6)
16
3270
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 not print in the username or email amddress of the person doing the download - which I am collecting from a form on the previous page. I can get the name and email address to print out normally, just not into the email sending body. I have...
1
2180
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 ringtone popular ringtine download ringtone download verizon ringtone download cingular ringtone download mosquito ringtone download mp3 ringtone download nextel ringtone download verizon ringtone download nokia ringtone download midi ringtone mobile...
5
3700
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... so i used Response.WriteFile but it won't trigger any download manager such as DAP or FlashGet i used this code :
1
47534
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 on a link and after a moment or two a file download dialog box pops-up in your web browser and prompts you for some instructions, such as “open” or “save“. I’m going to show you how to do that using a perl script. What You Need Any recent...
0
9963
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11106
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10657
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9857
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
8218
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6075
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4905
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4447
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3501
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.