473,327 Members | 1,920 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Showing progress of a postback

Is there anything I can do during a page postback to give any feedback to the
user of how it is progressing?

I am running some SQL queries and other processing so it can take 20 seconds
for the postback, sometimes longer and I would like to be able to show the
user something be it feedback, a progress bar etc.

I had tried launching a window from the main one right before the form
submit, which would read from a #table created in my postback, but once the
postback of the main form occurs, any refresh on the child window waits for
the parents postback to complete.

Any thoughts?
Aug 11 '05 #1
3 1664

you should look into multithreading that particular portion of your
site. Here is a good article on how to accomplish this...

http://tinyurl.com/8jcud

Basically, your post back to the server will spawn a worker thread and
gives back control of the original thread back to you. You trick the
client with some sort of annimated gif that looks like it is doing
something, but really you are just waiting for a MetaRefresh to time
out so that it will post back to server in order to check the status of
the worker thread.

Also, you can do some client side scripting to check the status of the
worker thread via the MicrosoftActiveX objects....

In the end, it is all smoke and mirror stuff, but the end user gets
visual ques that somethings is really happening so they don't get too
impatient.

Hope this helps.

Ralph
--
rviray
------------------------------------------------------------------------
rviray's Profile: http://www.msusenet.com/member.php?userid=4211
View this thread: http://www.msusenet.com/t-1870974394

Aug 11 '05 #2
I cannot get to this link its bouncing me to google cached pages, do you have
another link to the article?

"rviray" wrote:

you should look into multithreading that particular portion of your
site. Here is a good article on how to accomplish this...

http://tinyurl.com/8jcud

Basically, your post back to the server will spawn a worker thread and
gives back control of the original thread back to you. You trick the
client with some sort of annimated gif that looks like it is doing
something, but really you are just waiting for a MetaRefresh to time
out so that it will post back to server in order to check the status of
the worker thread.

Also, you can do some client side scripting to check the status of the
worker thread via the MicrosoftActiveX objects....

In the end, it is all smoke and mirror stuff, but the end user gets
visual ques that somethings is really happening so they don't get too
impatient.

Hope this helps.

Ralph
--
rviray
------------------------------------------------------------------------
rviray's Profile: http://www.msusenet.com/member.php?userid=4211
View this thread: http://www.msusenet.com/t-1870974394

Aug 11 '05 #3
nevermind got to it thanks again

"rviray" wrote:

you should look into multithreading that particular portion of your
site. Here is a good article on how to accomplish this...

http://tinyurl.com/8jcud

Basically, your post back to the server will spawn a worker thread and
gives back control of the original thread back to you. You trick the
client with some sort of annimated gif that looks like it is doing
something, but really you are just waiting for a MetaRefresh to time
out so that it will post back to server in order to check the status of
the worker thread.

Also, you can do some client side scripting to check the status of the
worker thread via the MicrosoftActiveX objects....

In the end, it is all smoke and mirror stuff, but the end user gets
visual ques that somethings is really happening so they don't get too
impatient.

Hope this helps.

Ralph
--
rviray
------------------------------------------------------------------------
rviray's Profile: http://www.msusenet.com/member.php?userid=4211
View this thread: http://www.msusenet.com/t-1870974394

Aug 11 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Greg | last post by:
I have a form that creates and updates a pound table during a postback, and right before I submit the form I do a window.open to launch another page that reads from the pound table which stores...
8
by: Raed Sawalha | last post by:
I have form with progress bar ,when application begin processing and progress bar moving if I minimized the form and try to restore it ,it is not showing until the processing completed ,how can I...
7
by: Steve Kallal | last post by:
I have seen this subject tossed around in this forum before. But in my case I need a simple solution. I do NOT need to show progress in terms on percentage complete. But rather I need to show a...
2
by: Robert Smith | last post by:
Hello, I have a problem with my progress bar, as shown in the attached code, the values on the bar are incremented within a threaded timer event. The timer works fine and ticks all the way...
3
by: Greg | last post by:
Is there anything I can do during a page postback to give any feedback to the user of how it is progressing? I am running some SQL queries and other processing so it can take 20 seconds for the...
4
by: Larry R | last post by:
I am trying to set a panel (that holds a progress image) to be visible when a long running process is happening. Sounds simple, right :) What happens is the panel never becomes visible. The load...
6
by: Vikas Kumar | last post by:
Hi if I want to show a progress bar in my web application how can i do it Like this much % of task has been completed as its shown when installing some desktop application i want to do same in my...
15
by: eladla | last post by:
Hi! I am creating a composite control the does some of it`s own data access. I want to display a progress bar between the time the page is loaded and the control place holder is displayed and...
0
by: gomzi | last post by:
hi, One of my pages is quite lengthy, and it has an atlas control on it. Now what happens is that when the operation is performed at the bottom of the page, then the user has no chance of knowing...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.