How do i force a user to download from a hyperlink as adobe pdf file, it
loads up in a new window and I need them to download it, or at least give
them the choice to download it.
Don.

Re: Force download of pdf file by Ray

Ray
Thu Feb 05 17:09:47 CST 2004

Hi Don,
http://www.aspfaq.com/show.asp?id=2161
Ray at work

"Don Grover" <spamfree@assoft.com.au> wrote in message
news:%23wRt%23xD7DHA.1716@TK2MSFTNGP10.phx.gbl...
> How do i force a user to download from a hyperlink as adobe pdf file, it
> loads up in a new window and I need them to download it, or at least give
> them the choice to download it.
> Don.
>
>



Re: Force download of pdf file by Don

Don
Fri Feb 06 03:33:09 CST 2004

Thanks Ray
With 40 billion pages on the web i am finding hard remembering where they
all are. 8-)
Don




"Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
message news:etNLn0D7DHA.2560@TK2MSFTNGP09.phx.gbl...
> Hi Don,
> http://www.aspfaq.com/show.asp?id=2161
> Ray at work
>
> "Don Grover" <spamfree@assoft.com.au> wrote in message
> news:%23wRt%23xD7DHA.1716@TK2MSFTNGP10.phx.gbl...
> > How do i force a user to download from a hyperlink as adobe pdf file, it
> > loads up in a new window and I need them to download it, or at least
give
> > them the choice to download it.
> > Don.
> >
> >
>
>



Re: Force download of pdf file by DevSonner

DevSonner
Fri Feb 06 09:06:36 CST 2004

<a href="download.asp?FileName=aa.pdf">FileDown</a>


<!-- download.asp //-->
<%
Response.ContentType = "application/unknown"

Response.AddHeader "Content-Disposition","attachment; filename="&
Request("FileName")

Set objStream = Server.CreateObject("ADODB.Stream")

objStream.Open

objStream.Type = 1

objStream.LoadFromFile Server.MapPath("/root/pdf/")&"\"& Request("FileName")

download = objStream.Read

Response.BinaryWrite download


Set objstream = Nothing
%>


Re: Force download of pdf file by Ray

Ray
Fri Feb 06 11:01:21 CST 2004

Those that cannot be found at www.aspfaq.com can be found at www.google.com.
:]

Ray at work

"Don Grover" <spamfree@assoft.com.au> wrote in message
news:%23uvF9QJ7DHA.3804@tk2msftngp13.phx.gbl...
> Thanks Ray
> With 40 billion pages on the web i am finding hard remembering where they
> all are. 8-)
> Don
>