|
-
Jun 4th, 2001, 03:12 PM
#1
Thread Starter
Lively Member
Redirect to File Download
How can i redirect to a file download rather than showing the content i want to redirect to a download.
thanks in advance
-
Jun 4th, 2001, 06:45 PM
#2
Frenzied Member
response.redirect "filedownlod.html"
if its not response,
then its request, i forgot which one it is
-
Jun 5th, 2001, 03:24 AM
#3
Thread Starter
Lively Member
No....
Response.Redirect will show you the content of the page, which is all okay if you want to display a different page but I want to download a file. e.g. Response.Redirect "http://www.somewhere.com/setup.exe"
-
Jun 5th, 2001, 09:10 AM
#4
PowerPoster
Doesn't
Response.Redirect("setup.exe") work?
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
-
Jun 5th, 2001, 01:05 PM
#5
Frenzied Member
I think we covered this about a week ago.. If the user's PC is setup to view the file in IE, it will. You can't force it to stop. The user can alternately right click on the link and download the target but you can't force a file to download if IE thinks it can display it.
oOOo--oOOo
__ /\/\onte96
oOOo--oOOo
Senior Programmer/Analyst
MCP
[email protected]
[email protected]
Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..
-
Jun 14th, 2001, 02:01 PM
#6
PowerPoster
and the moral of the story is...USE ZIP FILES!!!
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
-
Jun 14th, 2001, 04:06 PM
#7
Frenzied Member
Actually I think your snippet should work Sail.. I don't think any browsers are set up to actually display an .exe so it will ask open or download. If they choose open, it will download then run the file.
oOOo--oOOo
__ /\/\onte96
oOOo--oOOo
Senior Programmer/Analyst
MCP
[email protected]
[email protected]
Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..
-
Jun 15th, 2001, 04:10 AM
#8
Thread Starter
Lively Member
Well....
I'm not sure why it's doing it, but all i get is the contents of the EXE file rather than a download dialog box. Could it be that i had already sent content to the page so the headers would have allready arived at the browser.
-
Jun 15th, 2001, 06:09 AM
#9
Black Cat
Yeah, check the MIME type being sent in the Http headers. It would usually default to text/html or text/plain if you haven't manually set it.
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|