Solved

Please wait while page processes

Posted on 2004-09-05
4
158 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
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Help with sorting data in Listbox using VB.NET 3 62
vb.net checkbox 7 47
Ajax Panel Not Updating When Triggered By Timer 4 73
Create a datatable in vb.net dynamically 1 17
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…
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

823 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