473,472 Members | 2,143 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

asp.net: annimated gif while stored proc runs in the background

ASP.NET: Any suggestions on how to display an animated .gif file on a web
page while a stored procedure is running in the background? For example, on
some of the airline sites, it asks you to wait while a reservation is being
placed. During that time that the process is running on the server, they
frequently show some sort of graphic that implies "don't touch anything -
we're working."

The problem:
If I post a page with the graphic, but in the same piece of code I execute
the stored proc, the page doesn't actually display the graphic until the
stored procedure is completed, which defeats the purpose. It's feels like I
need to display the graphic, then magically force yet another postback??

Thanks in advance!

Mark

Nov 15 '05 #1
1 3050

"Mark" <fi**************@umn.edu> wrote in message
news:eh**************@TK2MSFTNGP12.phx.gbl...
ASP.NET: Any suggestions on how to display an animated .gif file on a web page while a stored procedure is running in the background? For example, on some of the airline sites, it asks you to wait while a reservation is being placed. During that time that the process is running on the server, they frequently show some sort of graphic that implies "don't touch anything - we're working."

The problem:
If I post a page with the graphic, but in the same piece of code I execute the stored proc, the page doesn't actually display the graphic until the stored procedure is completed, which defeats the purpose. It's feels like I need to display the graphic, then magically force yet another

postback??

You can:

- Have a hidden frame which actually does the stored proc work and
then returns some type of code in a javascript variable. In your
main frame, have your animated gif and a Javascript timer that
checks the other frame to see if that variable is set yet

- Spawn a thread to do the DB work and then have your page redirect
to the "Progress" page which immediately checks to see if the work
is done. If not, it waits (while the gif is running on the client)
and refreshes every X seconds. On the refresh, the page again checks
the status of the thread. If it's ready, it redirects to the DONE
page, if not, it starts the cycle again.

This might be bad because if you had lots of users, that's lots of
threads, but I've seen it done before and it seems to work well.

There's a 3rd one that I'm missing and it's pretty good, but
I can't remember it right now. If it comes to me again, I'll repost.

-c
Nov 15 '05 #2

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

Similar topics

3
by: LineVoltageHalogen | last post by:
Greetings All, currentley there is a heated discussion in my place of work over which method is better/more efficient for simple selects. Background: 1.) Simple Application that uses sql server...
0
by: Chris | last post by:
I have the following situation in a VB.Net App I am working on: 1.)A report created in VS.Net 2003 using the CR.Net component of VS 2003. 2.)The datasource for the report is a Stored Proc in a...
0
by: shamirza | last post by:
· What is view state and use of it? The current property settings of an ASP.NET page and those of any ASP.NET server controls contained within the page. ASP.NET can detect when a form is requested...
0
by: mirandacascade | last post by:
Questions toward the bottom of the post. Situation is this: 1) Access 97 2) SQL Server 2000 3) The Access app: a) sets up pass-thru query b) .SQL property of querydef is a string, the...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.