Solved

"Please Wait" graphic and text

Posted on 2007-03-21
4
1,162 Views
Last Modified: 2010-07-27
I have an ASP that roughly works like this:

if the URL request string ends in "/"
...
else if it does not end in "/" then:
  clear page by response flush and show wait graphic and text by response write
  download file via ftp component server-to-server
  reponse redirect to second asp, passing variables in request string
end if

Everything works as expected, except the please wait graphic/text is not shown until after the ftp component finishes downloading the file.  If I remove the ftp session code below the response.flush/response.write, the graphic and text is shown without delay.

I appreciate your assistance.
0
Comment
Question by:ddrudik
  • 2
  • 2
4 Comments
 
LVL 22

Accepted Solution

by:
WMIF earned 500 total points
ID: 18768592
the problem is that response.redirect is supposed to be used only when nothing else has been written to the page.  it may work sometimes, but it is not designed to work that way.  the better way to do this would be to write your graphics and text and flush.  then do your download, and then response.write a small javascript function that loads the next page.  you may possibly need to flush again after writing this, im not sure on that.  give it a shot.

<script language="javacsript">
window.location = "nextpage.asp"
</script>
0
 
LVL 27

Author Comment

by:ddrudik
ID: 18768740
Although that suggestion didn't work, I suspect you are partially correct in that the redirect also is failing after a perform response.write before the redirect.  I have read the many posts regarding buffering etc. but nothing seemed to be the solution in my case.
0
 
LVL 22

Expert Comment

by:WMIF
ID: 18781093
so what is happening?
0
 
LVL 27

Author Comment

by:ddrudik
ID: 18782123
I went the Javascript route using code from another source.  I will accept your answer to close out the question.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
ASP Sessions Being Cleared/Modified 6 80
Add server behaviors to Dreamweaver CC 2015 2 157
Pass through dll 2 82
Hide cell in a table 2 14
I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

778 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question