473,386 Members | 1,763 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,386 software developers and data experts.

Prompting a download of an external file in ASP.

I'm trying to create an ASP page which, when it loads runs the ASP code
first then prompts the user to download a text file. I know the answer
might be obvious to some of you, but I've sone several searches online
and I'm not getting anything.

1) Run code in ASP page.

2) Prompt user for download of external txt file after code is finished
running.

*** Sent via Developersdex http://www.developersdex.com ***
Jul 22 '05 #1
3 1554
What do you mean by "external"?

To force a download prompt for a file that might otherwise open directly in
the browser (e.g. TXT, HTM, JPG etc) see http://www.aspfaq.com/2161

"Andrew Henry" <em************@gmail.com> wrote in message
news:Ow**************@TK2MSFTNGP10.phx.gbl...
I'm trying to create an ASP page which, when it loads runs the ASP code
first then prompts the user to download a text file. I know the answer
might be obvious to some of you, but I've sone several searches online
and I'm not getting anything.

1) Run code in ASP page.

2) Prompt user for download of external txt file after code is finished
running.

*** Sent via Developersdex http://www.developersdex.com ***

Jul 22 '05 #2
By external I mean it's on the same server instead of being the ASP file
itself. (I've tried making an ASP page that tricks the browser and
downloads as a txt file, but it doesn't meet the specifications of the
application). The link you've given me seems to be what I'm looking for
though, thanks!

*** Sent via Developersdex http://www.developersdex.com ***
Jul 22 '05 #3
And another option would be to put the text files into zip files and
then simply link to those...

Best regards,
J. Paul Schmidt, Freelance ASP Web Designer
http://www.Bullschmidt.com
ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...
*** Sent via Developersdex http://www.developersdex.com ***
Jul 22 '05 #4

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

Similar topics

1
by: mr_burns | last post by:
hi, i have been tryin to prompt the download of a file on the server using the following code: // send headers, forcing download: header("Content-type: application/word");...
5
by: Richard Hollenbeck | last post by:
I have pages that I want a particular person to download dozens of images. Instead of opening each image separately with right-clicks, I want to be able to have them simply click, and the program...
2
by: aspguru2003 | last post by:
Hi, I want the users to dowload files( it will be txt , doc, zip formats) and this files are located on some other external web servers. but we have a link on our application to those files to...
0
by: JD | last post by:
Hello Everyone, I am trying to set up a media kit page where when a user comes to the page for the first time and click on the image they wish to download they are brought to a registration...
3
by: kim | last post by:
GOOD morning, I try to open xx.vbs in <href="./xx.vbs"></hef> but it pop up the file download mesage. How can i disabled it? I try another solution like this : set ws =...
6
by: Jatin | last post by:
Hey Guys I have a web application that allows users to download files. But the files are not hosted on the webserver. The files are stored on external servers and are referenced by a URL/URI....
6
by: aljosa.mohorovic | last post by:
I have a problem when doing indirect download of file through php, when I click on download link Firefox and Internet Explorer give me same options: Open and Save. Firefox opens file directly from...
0
by: ar | last post by:
Hello, In IE I disable "Automatic prompting for file downloads" which causes the IE information bar to show up when I try to push a file download from an iframe. I want to keep this behaviour. ...
3
by: Thomas S | last post by:
I'm trying to load and parse an xml file with XmlReader and have it completely IGNORE the DTD in the xml file. If I set "ValidationType = ValidationType.None" it STILL downloads the DTD even...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...

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.