Solved

Please wait while page processes

Posted on 2004-09-05
4
155 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 250 total points
Comment Utility
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
Comment Utility
how do you make an async operation
0
 
LVL 37

Expert Comment

by:gregoryyoung
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now