S
Surjit Madiwalar
Hi,
I want to get dialog box(open,save,cancel) for pdf file using asp(vbscript).
Presently when i click on pdf link on the site..the pdf document opens in
the browser.
I have used the below code(download.asp?file=filename):
<%
Response.AddHeader "content-disposition", "attachment; filename=" &
request.querystring("file")
Response.ContentType = "application/octet-stream"
%>
This file resides in the same dir of pdf documents
Eg:
Downloads
|
--1.pdf
|
--2.pdf
|
download.asp
But when i request download.asp with the filename i get dialog box..but when
i open the pdf file..it gives error saying document can't be read....
Please let me know your suggestions/inputs.
Rgds,
Surjit
I want to get dialog box(open,save,cancel) for pdf file using asp(vbscript).
Presently when i click on pdf link on the site..the pdf document opens in
the browser.
I have used the below code(download.asp?file=filename):
<%
Response.AddHeader "content-disposition", "attachment; filename=" &
request.querystring("file")
Response.ContentType = "application/octet-stream"
%>
This file resides in the same dir of pdf documents
Eg:
Downloads
|
--1.pdf
|
--2.pdf
|
download.asp
But when i request download.asp with the filename i get dialog box..but when
i open the pdf file..it gives error saying document can't be read....
Please let me know your suggestions/inputs.
Rgds,
Surjit