wait page - location.replace behaves strangely

G

Guest

I have a crystal report that is being displayed on the web (asp.net – VS
studio 2003).

I use a wait page, a very simple one, to tell the user to wait until the
report is displayed, simply text, no graphics or animation at all.

I use the location.replace in the wait page just as you recommend in a msdn
article. It works fine as long as it redirects to an asp.net page.

But I use the following function to display a pdf file and then it stops
working, so if I press the back button it takes me back at the wait page
again.


Private Sub showReport(ByVal filename As String)
Response.ClearContent()
Response.ClearHeaders()
Response.ContentType = "application/pdf"
Response.WriteFile(filename)
Response.Flush()
Response.Close()
Response.End()
System.IO.File.Delete(filename)
End Sub


How can I fix this problem ?

Thank you
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,906
Latest member
SkinfixSkintag

Latest Threads

Top