Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: C# ASP.NET itextsharp
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 21:44pm
Prasad Shastri at 19-Jun-13 2:54am
As you said it worked in IE8, it seems issue related with setting.
Check this might help...
Mahesh Bailwal at 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.. Smile | :)

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

  Print Answers RSS
0 OriginalGriff 575
1 Maciej Los 555
2 Sascha Lefévre 264
3 Suvendu Shekhar Giri 229
4 Richard Deeming 195
0 Sergey Alexandrovich Kryukov 9,693
1 OriginalGriff 9,185
2 Peter Leow 5,112
3 Kornfeld Eliyahu Peter 3,373
4 Maciej Los 2,876

Advertise | Privacy | Mobile
Web04 | 2.8.150327.1 | Last Updated 17 Jul 2013
Copyright © CodeProject, 1999-2015
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