Click here to Skip to main content
12,998,654 members (130,818 online)
Rate this:
Please Sign up or sign in to vote.

I have created a ASP.NET site that at the end generates the PDF forms and displays it to the user.
this is working fine in IE8 version but its not working in IE10 gives error .PDF couldnt be downloaded, gives same error even though I change browser mode to IE8 using f12.

I am using following snippet to display PDF and the PDf is created using itextsharp:

Response.ContentType = "application/pdf";
Response.Charset = null;
Response.AppendHeader("Content-Disposition", "attachment; Filename= " + FileName);

Filepath is the path of the PDF file.

Hope someone will give correct resolution for the problem.

Posted 18-Jun-13 20:44pm
Prasad Shastri 19-Jun-13 2:54am
As you said it worked in IE8, it seems issue related with setting.
Check this might help...
Mahesh Bailwal 19-Jun-13 4:03am
Mahesh Bailwal - 1 sec ago
What error are you getting.?

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Try Following:

1)Go to Internet Options


3) Under security tab,uncheck the option 'Do not save encrypted pages to disk'

Regards.. :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170622.1 | Last Updated 17 Jul 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100