Solved

"Please Wait" graphic and text

Posted on 2007-03-21
4
1,170 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Adding Row and Cell on a table 14 32
Session on Html 8 55
JQuery DataTable Functionality 8 53
P3P validator , ASP, PHP ,Https and Http links 3 43
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

732 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