Click here to Skip to main content
15,892,161 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Team,

I am using iframe for showing pdf file in a modelpopup control it is working fine, after modifing the pdf document on the code behind then i want to see the modified pdf in the iframe in modelpopup, but in this senario the old pdf document is showing(IN .NET).

Please give me reply ASAP and help me.


Thank you in advance..
Posted
Comments
ZurdoDev 1-May-13 7:59am    
Depends on your code. You need to post relevant code. But just change the src property on the iframe to the url of the new pdf.
bbirajdar 1-May-13 11:12am    
Question is unclear without the code
kirhidemi 20-May-13 20:02pm    
I also have this issue but strange thing only on IE and Opera and also once you deploy your site to the webserver in my local or development side it works fin in IE and Opera.

1 solution

append some random string into the filename to resolve the issue. if your filename is 'filename.pdf' then add some random string into it eg. 'filename_1234.pdf' and each time you generate new pdf append other set of random string into it. You can also try instead to the filename add query string also you need to generate random string for the value of the query string at least your filename is clean if you don't want that method. Good luck.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900