Solved

"Please Wait" graphic and text

Posted on 2007-03-21
4
1,173 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

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 informatio…
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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

691 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