Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Please wait while page processes

Posted on 2004-09-05
4
Medium Priority
?
164 Views
Last Modified: 2010-04-23
I have a page on my site that processes a bunch of jpeg's that range in size from 800kb - 4mb.  I usually have anywhere from 20 to 100 jpegs to process. The script resizes each jpeg and adds appropriate data to a sql database using a stored procedure. The entire process for each jpeg takes 5-10 seconds. Currently if I have more then 20 jpegs then the script times out and while the page is executing I do not get any output. What is the best way to overcome this, is it as simple as adjusting the timeout property? Or is there a better way to do it. How can I display a message on the page that states "PLease wait while the page processes!" and then redirect the page to another when all the jpegs are done. Thanks in advance
0
Comment
Question by:CUTTHEMUSIC
  • 2
4 Comments
 
LVL 37

Accepted Solution

by:
gregoryyoung earned 1000 total points
ID: 11986909
I usually make it an async operation (i.e. the page starts the process returns a please wait page that refreshes in 5-10 seconds if the operation is not complete it goes back to the please wait screen, if it is done it goes to a completion page)
0
 
LVL 2

Author Comment

by:CUTTHEMUSIC
ID: 11986917
how do you make an async operation
0
 
LVL 37

Expert Comment

by:gregoryyoung
ID: 11987262
in your page, start a thread that does the work and return ...

then have the page automatically refresh, have the thread write to the database when it is complete.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Integration Management Part 2
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 anti-spam), the admin…

963 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