location.replace doesn’t work when the following page is a PDF

Applies to:IE 6.0 (+others?), ASP.NET 1.1, JavaScript, PDF, Adobe Acrobat For some reason (at least in IE 6.0) if you use location.replace (to’disable’ back button by changing browser history) doesn’t work when thenext page is a dynamically displayed PDF, e.g. Response.ContentType=”application/pdf”;Response.BinaryWrite( (byte[]) Session[myPDF]);Response.Flush(); The history still displays the prior page in the history list. I’m not sure if [...]

SHARE:

Add comment

Loading