I have a webpage written in ASP.NET which displays a PDF in the browser using an iFrame. Relevant ASPX code is below:
<iframe id="ifrmPDF" src='<%=sFile %>'></iframe>
Where the variable sFile is the path to the PDF that I am displaying.
But for some reason displaying the PDF in this way is having the effect of locking the file so it cannot be updated on the server while somebody is viewing it. I was under the impression that when you view a PDF in a browser a copy was downloaded to the local machine and it was that which was being viewed but this doesn't appear to be the case.
Can anyone tell me of another way to display a PDF in a browser which will allow the file to be overwritten in the background?
Any help would be greatly appreciated and if you need anymore info then please let me know.