Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open/Save dialog box does not open

Status
Not open for further replies.

mufasa8005

Programmer
Aug 17, 2009
2
ZA
Hi there, I am running ASP.net 3.5 on my personal machine as well as on my testing machine. My live web server is running 64-bit Windows.

My problem is that I have coding set that instead of opening a PDF file directly in the browser, it needs to popup an Open/Save dialog box for the user to open or save the document in another location.

It works perfectly on my local machine as well as on the Dev machine, but on the live server, when a user clicks on the link to activate the open/save dialog box, it opens the popup but then just disappears. What could the problem be?

The coding I use is:

Response.ContentType = "application/pdf";
Response.AddHeader("Content-Disposition", "attachment; filename=Certificate of Membership.pdf");
 
Have you checked security on the actual file? I am wondering if in production the file itself is locked down.
 
Hi Evaleah, this happens with every single file that there is. The other thing is that it retrieves these files from Reports Server which the Network Administrator made to work on an IP address. Could this be the problem?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top