Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: PDF File


Message #1 by "Garland Frye" <gfrye@s...> on Wed, 12 Jun 2002 09:32:25 -0500
I am trying to load a pdf file, that exists on the server, to the client's
browser. If I use a hyperlink, and point that link to the file's path, it
works. What I need to do is something like this...
Response.Redirect("mypdffile.pdf"). This will not load the pdf file into the
clients browser. Any suggestions?

Thanks,
Garland R. Frye


Message #2 by "Jerry Clinesmith" <jerryclinesmith@h...> on Thu, 13 Jun 2002 00:24:36 -0500
Try:
Response.ContentType = "application/pdf";

Jerry Clinesmith
Senior Applications Developer, Med-i-bank Systems
Genpass Technologies
xxx.xxx.xxxx
 

-----Original Message-----
From: Garland Frye [mailto:gfrye@s...] 
Sent: Wednesday, June 12, 2002 9:32 AM
To: ASP+
Subject: [aspx] PDF File

I am trying to load a pdf file, that exists on the server, to the
client's
browser. If I use a hyperlink, and point that link to the file's path,
it
works. What I need to do is something like this...
Response.Redirect("mypdffile.pdf"). This will not load the pdf file into
the
clients browser. Any suggestions?

Thanks,
Garland R. Frye



Message #3 by "Garland Frye" <gfrye@s...> on Thu, 13 Jun 2002 09:25:38 -0500
You are correct, using that in combination with Response.WriteFile...

Thanks for the help,
Garland R. Frye

"Jerry Clinesmith" <jerryclinesmith@h...> wrote in message
news:183791@a...
>
> Try:
> Response.ContentType = "application/pdf";
>
> Jerry Clinesmith
> Senior Applications Developer, Med-i-bank Systems
> Genpass Technologies
> xxx.xxx.xxxx
>
>
> -----Original Message-----
> From: Garland Frye [mailto:gfrye@s...]
> Sent: Wednesday, June 12, 2002 9:32 AM
> To: ASP+
> Subject: [aspx] PDF File
>
> I am trying to load a pdf file, that exists on the server, to the
> client's
> browser. If I use a hyperlink, and point that link to the file's path,
> it
> works. What I need to do is something like this...
> Response.Redirect("mypdffile.pdf"). This will not load the pdf file into
> the
> clients browser. Any suggestions?
>
> Thanks,
> Garland R. Frye
>
>
>
>
>



  Return to Index