Solved

Please wait while page processes

Posted on 2004-09-05
4
162 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
[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
4 Comments
 
LVL 37

Accepted Solution

by:
gregoryyoung earned 250 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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
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…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

632 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